code: public static void setConnectionFactory(final ConnectionFactory connectionFactory) {
      if (connectionFactory == null)
        CONNECTION_FACTORY = ConnectionFactory.DEFAULT;
      else
        CONNECTION_FACTORY = connectionFactory;
    }
docs: Specify the {@link ConnectionFactory} used to create new requests.