// create an akka future which holds the commit message (if any) of the eventDefinitionActor
Future<Object> future = Patterns.ask(eventDefinitionActor, message, eventDefinitionTimeout);
try {
// make a synchronous ('Await.result') request ('Patterns.ask') to the event definition actor
Await.result(future, eventDefinitionTimeout.duration());
} catch (java.util.concurrent.TimeoutException timeout) {
LOG.error(String.format("Unhandled timeout while processing %s at EventDefintition:%s. Timeout was set to %s",
message.getClass().getSimpleName(), eventDefinitionActor, eventDefinitionTimeout.duration()));
} catch (Exception e) {
e.printStackTrace();