final Data response = clientResponse.getResponse();
handleEvent(response, callId, conn);
}
private void handleEvent(Data event, int callId, ClientConnection conn) {
final EventHandler eventHandler = conn.getEventHandler(callId);
final Object eventObject = serializationService.toObject(event);
if (eventHandler == null) {
logger.warning("No eventHandler for callId: " + callId + ", event: " + eventObject + ", conn: " + conn);
return;
}
eventHandler.handle(eventObject);
}