diff --git a/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java b/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java index 2a240d6b..0ed42a51 100644 --- a/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java +++ b/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java @@ -56,7 +56,6 @@ public enum StartupHookActivation { @Reference(policyOption = ReferencePolicyOption.GREEDY) private AcInstallationService acInstallationService; - private boolean isCompositeNodeStore; private Config.StartupHookActivation activationMode; @Activate @@ -115,7 +114,7 @@ private void copyAcHistoryToOrFromApps(SlingRepository repository, boolean isClo try { session = repository.loginService(null, null); - if(isCompositeNodeStore) { + if(RuntimeHelper.isCompositeNodeStore(session)) { LOG.info("Restoring history from /apps to /var"); if(session.nodeExists(HistoryUtils.AC_HISTORY_PATH_IN_APPS)) {