anchor.diff:  If you want to explicitly configure the SessionFactory you must supply a Configuration object as the first argument to the constructor, followed by the domain class packages.
   [source,java]
   ----
  -Configuration configuration = Components.configuration();
  -configuration.driverConfiguration()
  +Configuration configuration = new Configuration()
  +             .driverConfiguration()
                .setDriverClassName("org.neo4j.ogm.drivers.http.driver.HttpDriver")
                .setURI("http://localhost:7474")
                .setCredentials("user", "password")
  +
   SessionFactory sessionFactory = new SessionFactory(configuration, "org.neo4j.example.domain");
   Session session = sessionFactory.openSession();
   ----
  
positive.code: [source,java]
  ----
  // embedded
  Components.configuration()
               .driverConfiguration()
               .setURI("bolt://user:password@localhost");
  
  // separately as plain text
  Components.configuration()
               .driverConfiguration()
               .setCredentials("user", "password);
  
  // using a Credentials object
  Credentials credentials = new UsernameAndPasswordCredentials("user", "password");
  Components.configuration()
               .driverConfiguration()
               .setCredentials(credentials);
  ----
  
negative.code: .Java Configuration
  [source,java]
  ----
  Configuration configuration = new Configuration()
               .driverConfiguration()
               .setDriverClassName("org.neo4j.ogm.drivers.http.driver.HttpDriver")
               .setURI("http://user:password@localhost:7474")
  
  // having created a new configuration object, we can either use it directly with the Components class...
  Components.configure(configuration);
  
  // or pass it as the first argument to a SessionFactory instance
  new SessionFactory(configuration, packages...);
  ----
  
  _Note: Please see the section below describing the different ways you can pass credentials to the Http Driver_
  