</BUG>
{
ConfigLoader configLoader = new ConfigLoader( settings() );
Config config = configLoader.loadConfig(
<BUG>Optional.of( homeDir ),

Optional.of( new File( configPath, "neo4j.conf" ) ),
NullLog.getInstance() );</BUG>
return config.with( stringMap( DatabaseManagementSystemSettings.active_database.name(), databaseName ) );
}

catch ( IOException | TransactionFailureException e )
{
throw new RuntimeException( e );
}
}
private static Config loadNeo4jConfig( Path homeDir, Path configDir, String databaseName )
{
ConfigLoader configLoader = new ConfigLoader( settings() );
Config config = configLoader.loadConfig(
Optional.of( homeDir.toFile() ),
Optional.of( configDir.resolve( "neo4j.conf" ).toFile() ),
NullLog.getInstance() );
return config.with( stringMap( DatabaseManagementSystemSettings.active_database.name(), databaseName ) );
}
