}
public void updateMeanWeekWage(){
List<WageDTO> theWages = aRemote.findAllWageDetails();
CensusInsuranceService aService = new CensusInsuranceService();
WageDTO aWageDTO = new WageDTO();
for(WageDTO aWage : theWages) {
int anOccupationCode = aWage.getOccupationCode();
int anIndustryCode = aWage.getIndustryCode();
List<UserDTO> theUsers = aService.findUsersByCode(anIndustryCode,anOccupationCode);
if(theUsers != null && !theUsers.isEmpty()) {
aWageDTO.setMeanWeekWage(this.calculateMeanWeekWage(theUsers));
aWageDTO.setIndustryCode(anIndustryCode);
aWageDTO.setOccupationCode(anOccupationCode);
aRemote.setMeanWage(aWageDTO);
}
}
EventLogger.getInstance().info("All wage details updated");