_kieBase = kieSession.getKieBase();
_environment = kieSession.getEnvironment();
_configuration = kieSession.getSessionConfiguration();
_usePersistence = processEntityManagerFactory != null;
_registerableItemsFactory = new SimpleRegisterableItemsFactory();
_mapper = _usePersistence ? new JPAMapper(processEntityManagerFactory) : new InMemoryMapper();
_userGroupCallback = userGroupCallback;
_classLoader = classLoader;
}