WorkspaceNode workspaceNode = (WorkspaceNode) this.getParent().getParent();
resourcesPropertiesHandler.setWorkspaceId(workspaceNode.getId());
resourcesPropertiesHandler.setPanelId(null);
resourcesPropertiesHandler.setSectionId(null);
} else if (this.getParent().getParent() instanceof SectionNode) {
AbstractNode parent = (AbstractNode) this.getParent();
while (!(parent instanceof WorkspaceNode)) parent = (AbstractNode) parent.getParent();
WorkspaceNode workspaceNode = (WorkspaceNode) parent;
SectionNode sectionNode = (SectionNode) this.getParent().getParent();
resourcesPropertiesHandler.setWorkspaceId(workspaceNode.getId());
resourcesPropertiesHandler.setSectionId(Long.decode(sectionNode.getId()));
resourcesPropertiesHandler.setPanelId(null);
} else if (this.getParent().getParent() instanceof PanelNode) {
AbstractNode parent = (AbstractNode) this.getParent();
while (!(parent instanceof WorkspaceNode)) parent = (AbstractNode) parent.getParent();
WorkspaceNode workspaceNode = (WorkspaceNode) parent;
parent = (AbstractNode) this.getParent();
while (!(parent instanceof SectionNode)) parent = (AbstractNode) parent.getParent();
SectionNode sectionNode = (SectionNode) parent;
PanelNode panelNode = (PanelNode) this.getParent().getParent();
resourcesPropertiesHandler.setWorkspaceId(workspaceNode.getId());
resourcesPropertiesHandler.setSectionId(Long.decode(sectionNode.getId()));
resourcesPropertiesHandler.setPanelId( panelNode.getPanelId() );