private void process(DefaultMutableTreeNode node) {
        UserContextUpdatedAppEvent event = new UserContextUpdatedAppEvent();
        UserContext context = event.getContext();
        ProjectAdapter project = context.getProject();

        if ((node.isRoot()) || (node.getParent() == node.getRoot())) {
            context.setActiveContext(UserContext.ContextType_Project, project);
        } else {
            //we should be a class
            try {
                ProjectClass projectclass = (ProjectClass) node.getUserObject();
                context.setActiveContext(UserContext.ContextType_Class, projectclass);
            } catch (Exception e) {
                System.out.println(e);
            }
        }
    }