code: private Destination getDestination(Session session, String queueName) throws JMSException {
      	return new DynamicDestinationResolver().resolveDestinationName(session, queueName, false);
  	}
docs: Resolves destination by given name.
  @param session
  @param queueName
  @return
  @throws JMSException