code: private void createListener(final SibRaMessagingEngineConnection connection)
                      throws ResourceException
      {
  
          final String methodName = "createListener";
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
          {
              SibTr.entry(this, TRACE, methodName, connection);
          }
  
          if (_endpointConfiguration.getUseDestinationWildcard())
          {
              createMultipleListeners(connection);
          }
          else
          {
              createSingleListener(connection);
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, methodName);
          }
  
      }
docs: Creates a listener to the configured destination using the given connection.
  
  @param connection
  the connection to the messaging engine
  @throws ResourceException
  if the creation of the listener fails