c.addWantedField("datasets.images.default_pixels", "ImageServerID"); c.addWantedField("datasets.images.default_pixels", "Repository"); c.addWantedField("datasets.images.default_pixels.Repository", "ImageServerURL");
PixelsMapper.fieldsForPixels(c, "datasets.images.default_pixels");
    public static Criteria buildProjectsTreeCriteria(List projectIDs)    {        Criteria c = buildBasicCriteria();        //Specify which fields we want for the datasets.        c.addWantedField("datasets", "images");        //Specify which fields we want for the images.        c.addWantedField("datasets.images", "name");        c.addWantedField("datasets.images", "created");        c.addWantedField("datasets.images", "default_pixels");                //Specify which fields we want for the pixels.        c.addWantedField("datasets.images.default_pixels", "ImageServerID");         c.addWantedField("datasets.images.default_pixels", "Repository");        c.addWantedField("datasets.images.default_pixels.Repository",                         "ImageServerURL");                      if (projectIDs != null) c.addFilter("id", "IN", projectIDs);        return c;    }