aUserStateStats.setState(zip.getState());
}
aUserStateStats.setIndustryCode(user.getJobDetails().getIndustryCode());
aUserStateStats.setOccCode(user.getJobDetails().getOccupationCode());
}
GenericResponse aResponse = aStatsService.calculateWeeklyWage(aUserStateStats);
int userStateAvgWage = 0;
int numOfStates = 0;
if(aResponse != null && aResponse.getStatistics() != null
&& aResponse.isResponseStatus()) {
userStateAvgWage = aResponse.getStatistics().getAvgWeekWage();
}
List<StateAbbvDTO> theStates = aRemote.findAllStates();
StatisticsDTO otherStatesStats = new StatisticsDTO();
for(StateAbbvDTO aState : theStates) {
String aStateName = aState.getAbbv();
otherStatesStats.setIndustryCode(user.getJobDetails().getIndustryCode());
otherStatesStats.setOccCode(user.getJobDetails().getOccupationCode());
otherStatesStats.setState(aStateName);
aResponse = aStatsService.calculateWeeklyWage(aUserStateStats);
if(aResponse != null && aResponse.getStatistics() != null
&& aResponse.isResponseStatus()) {
if(userStateAvgWage < aResponse.getStatistics().getAvgWeekWage()) {
numOfStates++;
}
}
int aPercentage = 0;
if(theStates.size() > 0)