long sentTimestamp = message.getJMSTimestamp();
long currentTimestamp = System.currentTimeMillis();
// check if received message is not too old because in case of overload we could have old search-messages
if ( (currentTimestamp - sentTimestamp) < receiveTimeout ) {
final String correlationID = message.getJMSCorrelationID();
final Destination replyTo = message.getJMSReplyTo();
if (message instanceof ObjectMessage) {
ObjectMessage objectMessage = (ObjectMessage) message;
final SearchRequest searchRequest = (SearchRequest) objectMessage.getObject();
TaskExecutorManager.getInstance().runTask(new Runnable() {