log.debug("Send HL7 message using EPR :" + targetEPR);
}
OMElement omElement = messageContext.getEnvelope().getBody().getFirstElement().getFirstElement();
String xmlFormat = omElement.toString();
Message returnMsg = null;
Map<String,String> params = getURLParameters(targetEPR);
try {
Message message = parser.parse(xmlFormat);
ConnectionHub connectionHub = ConnectionHub.getInstance();
Connection connection = getConnection(targetEPR, connectionHub);
Initiator initiator = connection.getInitiator();
String timeout = params.get(HL7Constants.TIMEOUT_PARAM);
if (timeout != null) {