String idTemp = props.getProperty("agentConfig.id");
int id = Integer.parseInt(idTemp);
result.setId(id);
String workType0ne = props.getProperty("agentConfig.workPreference.one");
WorkType workType1 = buildWorkType(workType0ne);
result.setWorkPreference(workType1, WorkPreferenceType.FIRST);
String workTypeTwo = props.getProperty("agentConfig.workPreference.two");
WorkType workType2 = buildWorkType(workTypeTwo);
result.setWorkPreference(workType2, WorkPreferenceType.SECOND);
String workTypeThree = props.getProperty("agentConfig.workPreference.three");
WorkType workType3 = buildWorkType(workTypeThree);
result.setWorkPreference(workType3, WorkPreferenceType.THIRD);
return result;
}