try {
profileForm.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
DefaultMutableTreeNode expandingNode = (DefaultMutableTreeNode) event.getPath().getLastPathComponent();
ProfileResourceNode prn = (ProfileResourceNode) expandingNode.getUserObject();
profileForm.getInMemoryNodes().put(prn.getId(), expandingNode);
expandingNode.removeAllChildren();
final List<ProfileResourceNode> childNodes =
profileManager.findProfileResourceNodeAndImmediateChildren(
profileForm.getProfile().getUuid(), prn.getId());
if (!childNodes.isEmpty()) {