klass.equals(CategoryGroup.class))
klass.equals(CategoryGroupData.class))
    private void checkClass(Class klass)    {        if (klass.equals(ProjectData.class) ||                 klass.equals(CategoryGroup.class))            return;        throw new IllegalArgumentException("Root node not supported.");    }