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: 
  In some cases you won't want to, or will not be able to provide configuration information using a properties file. In this case you can configure the OGM programmatically instead.
  
  The `Components` class provides access to the various Configuration classes:
  
  [source,java]
  ----
  DriverConfiguration driverConfig = Components.configuration().driverConfiguration());
  CompilerConfiguration compilerConfig = Components.configuration().compilerConfiguration());
  ----
  
  Each Configuration object provides a fluent API to set its configuration options.
  
  The following sections describe how to configure the OGM using either a properties file or via Java Configuration.
  
  === Driver Configuration
  
  
negative.code: [source,java]
  ----
  // embedded
  Configuration configuration = new Configuration()
               .driverConfiguration()
               .setURI("bolt://user:password@localhost");
  
  // separately as plain text
  Configuration configuration = new Configuration()
               .driverConfiguration()
               .setCredentials("user", "password);
  
  // using a Credentials object
  Credentials credentials = new UsernameAndPasswordCredentials("user", "password");
  Configuration configuration = new Configuration()
               .driverConfiguration()
               .setCredentials(credentials);
  ----
  