private String getSiteName(String siteId) { if (siteId != null) { Site site = SiteFacade.getSiteService().findById(siteId); if (site != null) { return site.getName(); } else { return ""; } } else { return ""; } }
private boolean getLatestServiceContract(Site site) { if (site != null) { return isSaturdayVisitDay(site.getLastSiteServiceContractLifeCycle()); } return false; }