private WorkflowEntry(String pageName, String title, Workflow workflow, WorkflowEntry parent) { this.pageName = pageName; this.title = title; this.workflow = workflow; this.id = workflow.nextId(); this.parent = parent; if (parent != null) { parent.children.add(this); } workflow.register(this); }