teacherPercentageMap.put(shift.getIdInternal().toString(), degreeTeachingService .getPercentage());
teacherPercentageMap.put(shift.getIdInternal().toString(), round(degreeTeachingService .getPercentage()));
    protected void teachingServiceDetailsProcess(Professorship professorship,            HttpServletRequest request, DynaActionForm dynaForm) throws NumberFormatException,            FenixFilterException, FenixServiceException {        List<TeachingServicePercentage> teachingServicePercentages = new ArrayList();        HashMap teacherPercentageMap = new HashMap();        for (Iterator iter = professorship.getExecutionCourse().getAssociatedShiftsIterator(); iter                .hasNext();) {            Shift shift = (Shift) iter.next();            Double availablePercentage = shift.getAvailableShiftPercentageForTeacher(professorship                    .getTeacher());            teachingServicePercentages.add(new TeachingServicePercentage(shift, availablePercentage));            for (Iterator iterator = shift.getDegreeTeachingServices().iterator(); iterator.hasNext();) {                DegreeTeachingService degreeTeachingService = (DegreeTeachingService) iterator.next();                if (professorship == degreeTeachingService.getProfessorship()) {                    teacherPercentageMap.put(shift.getIdInternal().toString(), degreeTeachingService                            .getPercentage());                    break;                }            }        }        Iterator teachingServicePercentagesIterator = new OrderedIterator(teachingServicePercentages                .iterator(), TEACHING_SERVICE_PERCENTAGE_COMPARATOR_BY_SHIFT);        request.setAttribute("professorship", professorship);        request.setAttribute("teachingServicePercentages", teachingServicePercentagesIterator);        dynaForm.set("teacherPercentageMap", teacherPercentageMap);    }