if (imgA.getTimestamp() != null) time = new Timestamp(imgA.getTimestamp().longValue()); else time = getTimestamp(); Experimenter experimenter = imgA.getExperimenter();
mex = da.getModuleExecution(); if (mex.getTimestamp() != null) time = PrimitiveTypesMapper.getTimestamp(mex.getTimestamp()); else time = PrimitiveTypesMapper.getDefaultTimestamp(); Experimenter experimenter = mex.getExperimenter();
    public static void fillDatasetAnnotations(List l, Map map)    {        Iterator i = l.iterator();        DatasetAnnotation imgA;        AnnotationData data;        int ownerID;        List list;        Timestamp time = null;        while (i.hasNext()) {            imgA = (DatasetAnnotation) i.next();            list = new ArrayList();            if (imgA.getTimestamp() != null)                time = new Timestamp(imgA.getTimestamp().longValue());            else time = getTimestamp();            Experimenter experimenter = imgA.getExperimenter();            ownerID = experimenter.getID();            data = new AnnotationData(imgA.getID(), ownerID, time);            data.setAnnotation(imgA.getContent());            data.setOwnerFirstName(experimenter.getFirstName());            data.setOwnerLastName(experimenter.getLastName());            list.add(data);            map.put(new Integer(ownerID), list);        }    }