private Class getClassFromNode(DefaultMutableTreeNode node) {
        String className = node.toString();
        TreeNode marker;
        marker = node;
        while (marker.getParent() != node.getRoot()) {
            marker = marker.getParent();
            className = marker.toString() + "." + className;
        }
        try {
            return Class.forName(className);
        } catch (Exception e) {
            return null;
        }
    }