Destination destination = message.getJMSDestination();
if (destination instanceof Queue)
{
Queue queueRef = (Queue)destination;
LocalQueue queue = engine.getLocalQueue(queueRef.getQueueName());
if (queue.putLocked(message, locks))
committables.add(queue);
}
else
throw new InvalidDestinationException("Unsupported destination : "+destination);
}