buildPayload(event, builder);
eventHandler.onReadyStateChange(builder.build());
} else if (service.equals("http-logger") && eventId == 1) {
// console logger only sends one message
// FIXME make generic
Header header;
try {
header = Header.parseFrom(event.getPayload());
} catch (InvalidProtocolBufferException e) {
throw new ScopeException("Exception while parsing event", e);
}
eventHandler.onRequest(header.getWindowID());
} else if (service.equals("core")) {
switch (CoreMessage.get(eventId)) {
case ON_ACTIVE:
// No active event handler...
// Opera only becomes active as reaction on other event