if (defaultPix != null) { empty.setPixelsIDs(fillListPixelsID(defaultPix)); empty.setPixels(fillPixels(defaultPix)); }
empty.setPixelsIDs(fillListPixelsID(defaultPix)); empty.setPixels(fillPixels(defaultPix));
	public static void fillImage(Image image, ImageData empty)	{		//Fill in the data coming from OMEDS object.		empty.setID(image.getID());		empty.setName(image.getName());		empty.setDescription(image.getDescription());		empty.setCreated(PrimitiveTypesMapper.getTimestamp(image.getCreated()));		empty.setInserted(                PrimitiveTypesMapper.getTimestamp(image.getInserted()));				//Fill in the data coming from Experimenter.		Experimenter owner = image.getOwner();		empty.setOwnerID(owner.getID());		empty.setOwnerFirstName(owner.getFirstName());		empty.setOwnerLastName(owner.getLastName());		empty.setOwnerEmail(owner.getEmail());		empty.setOwnerInstitution(owner.getInstitution());			//Fill in the data coming from Group.		Group group = owner.getGroup();		empty.setOwnerGroupID(group.getID());		empty.setOwnerGroupName(group.getName());				//dataset summary list.		List datasets = new ArrayList();		Iterator i = image.getDatasets().iterator();		Dataset d;		while (i.hasNext()) {			d = (Dataset) i.next();			datasets.add(new DatasetSummary(d.getID(), d.getName()));		}		empty.setDatasets(datasets);				// pixelsDescription list.        Pixels defaultPix = image.getDefaultPixels();		if (defaultPix != null) {            empty.setPixelsIDs(fillListPixelsID(defaultPix));                empty.setPixels(fillPixels(defaultPix));        }		}