throw new DispatchException(CoreMessages.objectIsNull("Endpoint"), event, getEndpoint());
}
MuleEvent eventToDispatch = DefaultMuleEvent.copy(event);
eventToDispatch.clearFlowVariables();
eventToDispatch.setMessage(eventToDispatch.getMessage().createInboundMessage());
QueueSession session = getQueueSession();
Queue queue = session.getQueue(endpointUri.getAddress());
if (!queue.offer(eventToDispatch, connector.getQueueTimeout()))
{
// queue is full
throw new DispatchException(VMMessages.queueIsFull(queue.getName(), queue.size()),
eventToDispatch, getEndpoint());