private UndergraduateStudents getUndergraduateStudents(
            OtherPersonnelDto otherPersonnel) {

        UndergraduateStudents undergraduate = UndergraduateStudents.Factory
                .newInstance();
        if (otherPersonnel != null) {
            undergraduate.setNumberOfPersonnel(otherPersonnel
                    .getNumberPersonnel());
            undergraduate.setProjectRole(otherPersonnel.getRole());
            CompensationDto sectBCompType = otherPersonnel.getCompensation();

            undergraduate.setRequestedSalary(sectBCompType.getRequestedSalary().bigDecimalValue());
            undergraduate.setFringeBenefits(sectBCompType.getFringe().bigDecimalValue());
            undergraduate.setAcademicMonths(sectBCompType.getAcademicMonths().bigDecimalValue());
            undergraduate.setCalendarMonths(sectBCompType.getCalendarMonths().bigDecimalValue());
            undergraduate.setFundsRequested(sectBCompType.getFundsRequested().bigDecimalValue());
            undergraduate.setSummerMonths(sectBCompType.getSummerMonths().bigDecimalValue());

            
        }
        return undergraduate;
    }
private UndergraduateStudents getUndergraduateStudents ( OtherPersonnelDto otherPersonnel ) { UndergraduateStudents undergraduate = UndergraduateStudents . Factory . newInstance ( ) ; if ( otherPersonnel != null ) { undergraduate . setNumberOfPersonnel ( otherPersonnel . getNumberPersonnel ( ) ) ; undergraduate . setProjectRole ( otherPersonnel . getRole ( ) ) ; CompensationDto sectBCompType = otherPersonnel . getCompensation ( ) ; undergraduate . setRequestedSalary ( sectBCompType . getRequestedSalary ( ) . bigDecimalValue ( ) ) ; undergraduate . setFringeBenefits ( sectBCompType . getFringe ( ) . bigDecimalValue ( ) ) ; undergraduate . setAcademicMonths ( sectBCompType . getAcademicMonths ( ) . bigDecimalValue ( ) ) ; undergraduate . setCalendarMonths ( sectBCompType . getCalendarMonths ( ) . bigDecimalValue ( ) ) ; undergraduate . setFundsRequested ( sectBCompType . getFundsRequested ( ) . bigDecimalValue ( ) ) ; undergraduate . setSummerMonths ( sectBCompType . getSummerMonths ( ) . bigDecimalValue ( ) ) ; } return undergraduate ; }
This method is to get the UndergraduateStudents details,ProjectRole,
NumberOfPersonnel,Compensation based on OtherPersonnelInfo for the
RRBudget10,if it is a UndergraduateStudents type.

@param otherPersonnel
(OtherPersonnelInfo) other personnel info entry.
@return UndergraduateStudents details corresponding to the
OtherPersonnelInfo object.