putIfNotNull(map, MD_SIZE_T, pixels.getSizeT());
putIfNotNull(map, MD_SIZE_Z, pixels.getSizeZ());
if (image.sizeOfLinkedWellSampleList() == 1) {
final WellSample wellSample = image.getLinkedWellSample(0);
putIfNotNull(map, MD_SITE, wellSample.getIndex());
final Well well = wellSample.getWell();
if (well != null) {
map.put(MD_WELL, getWellName(well.getRow().getValue(), well.getColumn().getValue()));
Plate plate = well.getPlate();
if (plate != null) {
map.put(MD_PLATE, well.getPlate().getName());
}
}
}
} else {
map.put(MD_SIZE_C, StringCache.intern("1"));