public String primaryOccupationName(){
  String primaryOccupation=null;
  if (professionalExperience != null && professionalExperience.primaryCompany() != null) {
    Company company=professionalExperience.primaryCompany();
    primaryOccupation=company.title();
  }
  if (primaryOccupation == null || primaryOccupation.isEmpty()) {
    if (educationBackground != null && educationBackground.primarySchool() != null) {
      School primarySchool=educationBackground.primarySchool();
      primaryOccupation=primarySchool.degree();
    }
  }
  return primaryOccupation;
}

public String primaryOccupationName ( ) { String primaryOccupation = null ; if ( professionalExperience != null && professionalExperience . primaryCompany ( ) != null ) { Company company = professionalExperience . primaryCompany ( ) ; primaryOccupation = company . title ( ) ; } if ( primaryOccupation == null || primaryOccupation . isEmpty ( ) ) { if ( educationBackground != null && educationBackground . primarySchool ( ) != null ) { School primarySchool = educationBackground . primarySchool ( ) ; primaryOccupation = primarySchool . degree ( ) ; } } return primaryOccupation ; }
returns the user primary occupation . this method will also check the users education fields if the user is a student .
