public void init(List<TimesheetDO> list) {
   if (CollectionUtils.isNotEmpty(list) == true) {
     ensureRecents();
     ensureRecentTasks();
     for (TimesheetDO timesheet : list) {
       TimesheetPrefEntry prefEntry = new TimesheetPrefEntry(timesheet);
       recents.addOnly(prefEntry);
       if (timesheet.getId() == null) {
         return;
       }
       recentTasks.addOnly(timesheet.getTaskId());
     }
   }
 }
 public void initLocations(Collection<String> locations) {
   if (CollectionUtils.isNotEmpty(locations) == true) {
     ensureRecentLocations();
     for (String location : locations) {
       if (StringUtils.isBlank(location) == true) {
         return;
       }
       recentLocations.addOnly(location);
     }
   }
 }