private int compareCountries(final OutboundMobilityCandidacyContest o) {
   final Country c1 = getMobilityAgreement().getUniversityUnit().getCountry();
   final Country c2 = o.getMobilityAgreement().getUniversityUnit().getCountry();
   return c1 == c2
       ? 0
       : (c1 != null && c2 != null ? c1.getName().compareTo(c2.getName()) : (c1 == null ? -1 : 1));
 }
 private int comparePrograms(final OutboundMobilityCandidacyContest o) {
   return getMobilityAgreement()
       .getMobilityProgram()
       .getRegistrationProtocol()
       .getDescription()
       .compareTo(
           o.getMobilityAgreement()
               .getMobilityProgram()
               .getRegistrationProtocol()
               .getDescription());
 }
 private int compareUniversities(final OutboundMobilityCandidacyContest o) {
   return Unit.COMPARATOR_BY_NAME_AND_ID.compare(
       getMobilityAgreement().getUniversityUnit(), o.getMobilityAgreement().getUniversityUnit());
 }