final EntityTools<Node> nodeEntityTools = new EntityTools<Node>(nodeTypeRepresentationStrategy, nodeEntityStateFactory, nodeEntityInstantiator, mappingContext);
final EntityTools<Relationship> relationshipEntityTools = new EntityTools<Relationship>(relationshipTypeRepresentationStrategy, relationshipEntityStateFactory, relationshipEntityInstantiator, mappingContext);
entityPersister = new Neo4jEntityPersister(conversionService, nodeEntityTools, relationshipEntityTools, mappingContext, entityStateHandler);
mappingContext.afterPropertiesSet();
factoryBean.afterPropertiesSet();
return factoryBean.getObject();
}
protected void setBasePackage(Neo4jMappingContext mappingContext) throws ClassNotFoundException {
setBasePackage(mappingContext, getClass().getPackage().getName());