@Override public void eventListenersResponseReceived(List<EventListenersResponse> response) { for (final EventListenersResponse singleResponse : response) { LOG.debug("Received event listener resolution response: {}", response); final EventListenersRequestBinding bind = eventListenersRequests.remove( singleResponse.getRequestId()); executorContext.getCallbackExecutor().submit(new Runnable() { @Override public void run() { if (bind != null) { if (singleResponse.getResult() == SyncResponseResultType.SUCCESS) { bind.getListener().onEventListenersReceived(singleResponse.getListeners()); } else { bind.getListener().onRequestFailed(); } } } }); } }