code: private GraduateStudents getGraduateStudents(OtherPersonnelDto otherPersonnel) {
  
          GraduateStudents graduate = GraduateStudents.Factory.newInstance();
          if (otherPersonnel != null) {
              graduate.setNumberOfPersonnel(otherPersonnel.getNumberPersonnel());
              graduate.setProjectRole(otherPersonnel.getRole());
              graduate.setCompensation(getSectBCompensationDataType(otherPersonnel.getCompensation()));
          }
          return graduate;
      }
docs: This method gets the GraduateStudents details,ProjectRole, NumberOfPersonnel,Compensation based on OtherPersonnelInfo for the
  RRFedNonFedBudget, if it is a GraduateStudents type.
  
  @param otherPersonnel (OtherPersonnelInfo) other personnel info entry.
  @return GraduateStudents details corresponding to the OtherPersonnelInfo object.