if (userID != -1) c.addFilter("module_execution.experimenter_id", new Integer(userID));
    public static Criteria buildICGHierarchyCriteria(List imageIDs)    {        Criteria c = new Criteria();        c.addWantedField("Confidence");        c.addWantedField("Category");        c.addWantedField("module_execution");        c.addWantedField("module_execution", "experimenter");        //Specify which fields we want for the owner.        c.addWantedField("module_execution.experimenter", "id");        //Fields for the category        c.addWantedField("Category", "Name");        c.addWantedField("Category", "Description");        c.addWantedField("Category", "CategoryGroup");        c.addWantedField("Category.CategoryGroup", "Name");        c.addWantedField("Category.CategoryGroup", "Description");        //Fields we want for the images.        c.addWantedField("image");        c.addWantedField("image", "id");        c.addFilter("image_id", "IN", imageIDs);        //In this case, the filter should work ;-)        return c;    }