title: Spring Boot + Neo4j get GraphDatabaseService bean?
body: <p>Using the new-style (Spring Data Neo4j 4.1.2.RELEASE) Neo4jConfiguration can I get a reference to the underlying embedded GraphDatabaseService to pass to the web ui?</p>
  
  <p>New style config:</p>
  
  <pre><code>@Configuration
  @EnableNeo4jRepositories(basePackages = "fu.bar")
  @EnableTransactionManagement
  public class Neo4j extends Neo4jConfiguration {
  
      @Bean
      @Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON, proxyMode = ScopedProxyMode.TARGET_CLASS)
      public Session getSession() throws Exception {
          return super.getSession();
      }
  
      @Bean
      public org.neo4j.ogm.config.Configuration getConfiguration() {
          org.neo4j.ogm.config.Configuration config = new org.neo4j.ogm.config.Configuration();
          config.driverConfiguration()
              .setDriverClassName("org.neo4j.ogm.drivers.embedded.driver.EmbeddedDriver")
              .setURI("file:///var/tmp/graph.db");
          return config;
      }
  
      @Bean
      public SessionFactory getSessionFactory() {
          SessionFactory sessionFactory = new SessionFactory(getConfiguration(), "fu.bar");
          return sessionFactory;
      }
  </code></pre>
  
  <p>I'm not seeing anything in the Javadoc that helps but I suspect Boot has an instance someplace.</p>
  
  <p>Thanks.</p>