code: public static ConfigurableConnection create(ConnectionFactory connectionFactory, Config config)
        throws IOException, TimeoutException {
      Assert.notNull(connectionFactory, "connectionFactory");
      return create(new ConnectionOptions(connectionFactory), config, DEFAULT_CLASS_LOADER);
    }
docs: Creates and returns a new Lyra managed ConfigurableConnection for the given
  {@code connectionFactory} and {@code config}. If the connection attempt fails, retries will be
  performed according to the {@link Config#getConnectRetryPolicy() configured RetryPolicy} before
  throwing the failure.
  
  @throws NullPointerException if {@code connectionFactory} or {@code config} are null
  @throws IOException if the connection could not be created