}
@Bean
protected EntityInstantiator<Node> graphEntityInstantiator() throws Exception {
if (isUsingCrossStorePersistence()) {
return new CrossStoreNodeEntityInstantiator(new NodeEntityInstantiator(entityStateHandler()), entityManagerFactory);
} else {
return new NodeEntityInstantiator(entityStateHandler());
}
}