return result!=null ? result.getPersistentState() : null;
}
private synchronized ApplicationContext context(GraphDatabaseService graphDb) {
if (ctx==null) {
ctx = new ProvidedClassPathXmlApplicationContext(graphDb, "Plugin-context.xml");
personRepository = ctx.getBean(PersonRepository.class);
graphDatabaseContext = ctx.getBean(GraphDatabaseContext.class);
}
return ctx;
}