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