.addStore(JpaStoreConfigurationBuilder.class)
.persistenceUnitName(getPersistenceUnitName())
.entityClass(KeyValueEntity.class)
.storeMetadata(storeMetadata())
.create();
InitializationContext context = createContext(builder.build());
context.getCache().getAdvancedCache().getComponentRegistry().getGlobalComponentRegistry()
.registerComponent(new EntityManagerFactoryRegistry(), EntityManagerFactoryRegistry.class);
JpaStore store = new JpaStore();
store.init(context);
return store;
}