code: private Destination resolveDestinationName(String name, Session session) throws JMSException {
          if (endpointConfiguration.getDestinationResolver() != null) {
              return endpointConfiguration.getDestinationResolver().resolveDestinationName(session, name, endpointConfiguration.isPubSubDomain());
          }
  
          return new DynamicDestinationResolver().resolveDestinationName(session, name, endpointConfiguration.isPubSubDomain());
      }
docs: Resolves the destination name from Jms session.
  @param name
  @param session
  @return