String createdBy = reader.getAttribute("createdBy");
String createdOn = reader.getAttribute("createdOn");
String lastUpdatedBy = reader.getAttribute("lastUpdatedBy");
String lastUpdatedOn = reader.getAttribute("lastUpdatedOn");
History history = new History();
if (createdBy != null)
{
history.setCreatedBy(retrieveUser(context, createdBy));
}
if (lastUpdatedBy != null)
{
history.setLastUpdatedBy(retrieveUser(context, lastUpdatedBy));
}
history.setCreatedOn(parseDate(createdOn));
history.setLastUpdatedOn(parseDate(lastUpdatedOn));
return history;
}