return null;
}
LOGGER.info("waiting {}ms for response on call with id {}", timeout, callId);
JmsTemplate createJMSTemplate = createJMSTemplate(destination);
createJMSTemplate.setReceiveTimeout(timeout);
Object receiveAndConvert = createJMSTemplate.receiveAndConvert(callId);
if (receiveAndConvert == null) {
throw new RuntimeException("JMS Receive Timeout reached");
}
LOGGER.info("response for call with id {} received", callId);
return (String) receiveAndConvert;