code: private GraduateStudents getGraduateStudents(
              OtherPersonnelDto otherPersonnel) {
  
          GraduateStudents graduate = GraduateStudents.Factory.newInstance();
          if (otherPersonnel != null) {
              graduate.setNumberOfPersonnel(otherPersonnel.getNumberPersonnel());
              graduate.setProjectRole(otherPersonnel.getRole());
              CompensationDto sectBCompType = otherPersonnel.getCompensation();
  
              graduate.setRequestedSalary(sectBCompType.getRequestedSalary().bigDecimalValue());
              graduate.setFringeBenefits(sectBCompType.getFringe().bigDecimalValue());
              graduate.setAcademicMonths(sectBCompType.getAcademicMonths().bigDecimalValue());
              graduate.setCalendarMonths(sectBCompType.getCalendarMonths().bigDecimalValue());
              graduate.setFundsRequested(sectBCompType.getFundsRequested().bigDecimalValue());
              graduate.setSummerMonths(sectBCompType.getSummerMonths().bigDecimalValue());
  
          }
          return graduate;
      }
docs: This method gets the GraduateStudents details,ProjectRole,
  NumberOfPersonnel,Compensation based on OtherPersonnelInfo for the
  RRBudget10, if it is a GraduateStudents type.
  
  @param otherPersonnel
  (OtherPersonnelInfo) other personnel info entry.
  @return GraduateStudents details corresponding to the OtherPersonnelInfo
  object.