switch (shift.getTipo()) { case TEORICA: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTheoreticalHours().doubleValue()); case PRATICA: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getPraticalHours().doubleValue()); case TEORICO_PRATICA: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTheoPratHours().doubleValue()); case LABORATORIAL: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getLabHours().doubleValue()); case SEMINARY: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getSeminaryHours().doubleValue()); case PROBLEMS: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getProblemsHours().doubleValue()); case FIELD_WORK: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getFieldWorkHours().doubleValue()); case TRAINING_PERIOD: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTrainingPeriodHours().doubleValue()); case TUTORIAL_ORIENTATION: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTutorialOrientationHours().doubleValue()); default: break; } return true;
switch (shift.getTipo()) { case TEORICA: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getTheoreticalHours().doubleValue()); case PRATICA: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getPraticalHours().doubleValue()); case TEORICO_PRATICA: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getTheoPratHours().doubleValue()); case LABORATORIAL: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getLabHours().doubleValue()); case SEMINARY: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getSeminaryHours().doubleValue()); case PROBLEMS: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getProblemsHours().doubleValue()); case FIELD_WORK: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getFieldWorkHours().doubleValue()); case TRAINING_PERIOD: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getTrainingPeriodHours().doubleValue()); case TUTORIAL_ORIENTATION: return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao() .getTutorialOrientationHours().doubleValue()); default: break;
	private boolean newShiftExecutionCourseIsValid(Shift shift,	InfoExecutionCourse newShiftExecutionCourse, double shiftDuration) {		// Verify if shift total duration exceeds new executionCourse uration                switch (shift.getTipo()) {        case TEORICA:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTheoreticalHours().doubleValue());        case PRATICA:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getPraticalHours().doubleValue());        case TEORICO_PRATICA:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTheoPratHours().doubleValue());        case LABORATORIAL:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getLabHours().doubleValue());        case SEMINARY:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getSeminaryHours().doubleValue());        case PROBLEMS:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getProblemsHours().doubleValue());        case FIELD_WORK:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getFieldWorkHours().doubleValue());        case TRAINING_PERIOD:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTrainingPeriodHours().doubleValue());        case TUTORIAL_ORIENTATION:            return verifyIfShiftDurationIsValid(shiftDuration, shift.getDisciplinaExecucao().getTutorialOrientationHours().doubleValue());        default:            break;        }             return true;        	}