{
log.debug("sending result " + result + " to " + destination);
}
final Services services = jbpmContext.getServices();
final JmsMessageService messageService = (JmsMessageService) services.getMessageService();
final Session session = messageService.getSession();
final MessageProducer producer = session.createProducer(destination);
try
{
Message resultMessage = session.createObjectMessage(result);
resultMessage.setJMSCorrelationID(correlationId);