String idString = attributes.getNamedItem("id").getNodeValue();
String date = attributes.getNamedItem("date").getNodeValue();
String userid = attributes.getNamedItem("userid").getNodeValue();
String xcoordinate = attributes.getNamedItem("xcoordinate").getNodeValue();
String ycoordinate = attributes.getNamedItem("ycoordinate").getNodeValue();
Position position = new Position(Integer.parseInt(xcoordinate), Integer.parseInt(ycoordinate));
User user = Context.getUserService().getUser(Integer.parseInt(userid));
annotations.add(new ImageAnnotation(Integer.parseInt(idString), position, text, new Date(Long
.parseLong(date)), user, Status.UNCHANGED));
}
catch (NumberFormatException e) {