JCRSessionWrapper liveSession = JCRTemplate.getInstance().getSessionFactory().getCurrentUserSession("live", currentUserSession.getLocale(), currentUserSession.getFallbackLocale());
jcrNode = liveSession.getNodeByUUID(node.getUuid());
} else {
jcrNode = currentUserSession.getNodeByUUID(node.getUuid());
if (lastRule == null || jcrNode.hasNode(WorkflowService.WORKFLOWRULES_NODE_NAME)) {
WorkflowRule rule = workflowService.getWorkflowRuleForAction(jcrNode, null, "publish", null);
if (rule != null) {
if (!rule.equals(lastRule)) {
if (workflowService.getWorkflowRuleForAction(jcrNode, currentUserSession.getUser() , "publish", null) != null) {
lastRule = rule;
} else {
lastRule = null;
}