public void processMessages() throws EMessagingException { for (MessageDefinition messageDefinition : messageHub.receive(client)) { Map<Object, Object> executionContext = new HashMap<Object, Object>(); executionContext.put(PARAM_MESSAGE, messageDefinition); ListenerProcessor.executeByEngineType(listener.getModule(), executionContext, listener); } }