code: public Queue getQueue(Session session, String commonName) throws ServiceLocatorException {
          Queue queue = (Queue) queueCache.get(commonName);
          if (queue == null) {
              try {
                  String name = namingProvider.qualifyJmsQueueName(commonName);
                  queue = jmsProvider.getQueue(session, namingProvider, name);
                  if (queue != null)
                      queueCache.put(commonName, queue);
              }
              catch (Exception ex) {
                  throw new ServiceLocatorException(-1, ex.getMessage(), ex);
              }
          }
          return queue;
      }
docs: Uses the container-specific qualifier to look up a JMS queue.
  
  @param commonName
  the vendor-neutral logical queue name
  @return javax.jms.Queue