try {
try {
phdStudentNumber = Integer.valueOf(fields[0].trim());
} catch (NumberFormatException e) {
throw new IncompleteFieldsException("processNumber");
}
identificationNumber = fields[1].trim();
socialSecurityNumber = parseSocialSecurityNumber(fields[2].trim());
fullName = StringFormatter.prettyPrint(fields[3].trim());
familyName = StringFormatter.prettyPrint(fields[4].trim());
dateOfBirth = ConversionUtilities.parseDate(fields[5].trim());
gender = ConversionUtilities.parseGender(fields[6].trim());
nationality = NationalityTranslator.translate(fields[7].trim());
// Address
parishOfResidence = fields[8].trim();
districtSubdivisionOfResidence = fields[9].trim();
districtOfResidence = fields[10].trim();
fatherName = fields[11].trim();
motherName = fields[12].trim();
address = fields[13].trim();
areaCode = fields[14].trim();
area = fields[15].trim();
areaOfAreaCode = area;
// -- Address
contactNumber = fields[16].trim();
otherContactNumber = fields[17].trim();
profession = fields[18].trim();
workPlace = fields[19].trim();
email = fields[20].trim();
} catch (NoSuchElementException e) {
throw new IncompleteFieldsException("Not enough fields");
}
}