@Override
    public void setParent(OrganigramNode parent) {
        if (parent != null) {
            parent.getChildren().add(this);
        }
        this.parent = parent;
    }
Default implementation for the {@link OrganigramNode}.
primefaces/src/main/java/org/primefaces/model/DefaultOrganigramNode.java