anchor.diff:  .Java Configuration
   [source,java]
   ----
  -Components.configuration()
  +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_
  
positive.code: .Java Configuration (permanent data store)
  [source,java]
  ----
  Components.configuration()
               .driverConfiguration()
               .setDriverClassName("org.neo4j.ogm.drivers.embedded.driver.EmbeddedDriver")
               .setURI("file://home/bilbo");
  ----
  
  .Java Configuration (impermanent data store)
  [source,java]
  ----
  Components.configuration()
               .driverConfiguration()
               .setDriverClassName("org.neo4j.ogm.drivers.embedded.driver.EmbeddedDriver")
  ----
  
  As you can see to use an impermanent data store, you just omit the URI attribute.
  
negative.code: 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 = 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();
  ----
  