public synchronized void destroyMessageContainer(ActiveMQDestination dest) throws JMSException {
MessageContainer container = (MessageContainer) messageContainers.get(dest.getPhysicalName());
if (container != null) {
container.getMessageContainerAdmin().empty();
container.stop();
messageContainers.remove(dest.getPhysicalName());
destinations.remove(dest.getPhysicalName());
}
}