code: protected SessionFactory createSessionFactory( ConnectionProvider connectionProvider, RetryLogic retryLogic,
              Config config )
      {
          return new SessionFactoryImpl( connectionProvider, retryLogic, config );
      }
docs: Creates new {@link SessionFactory}.
  <p>
  <b>This method is protected only for testing</b>