{
if (userPrefDO == null) {
return null;
}
final TimesheetTemplateObject template = new TimesheetTemplateObject();
final UserPrefDao userPrefDao = Registry.instance().getDao(UserPrefDao.class);
final TimesheetDO timesheet = new TimesheetDO();
userPrefDao.fillFromUserPrefParameters(userPrefDO, timesheet);
template.setName(userPrefDO.getName());
template.setDescription(timesheet.getDescription());
template.setLocation(timesheet.getLocation());
final UserObject user = PFUserDOConverter.getUserObject(timesheet.getUser());
if (user != null) {