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