List<String> coursesToRemove = Arrays.asList(GROUP_320);
List<String> coursesToRemove = new ArrayList<String>(GROUP_320.length); coursesToRemove.addAll(Arrays.asList(GROUP_320));
    private List<CurricularCourse2Enroll> applyProducao(List<CurricularCourse2Enroll> curricularCoursesToBeEnrolledIn) {	if(isEnrolledInExecutionPeriod(DISSERTACAO_CODE)) {	    removeCurricularCourse(curricularCoursesToBeEnrolledIn, PRODUCAO_MECANICAI_CODE);	    removeCurricularCourse(curricularCoursesToBeEnrolledIn, PROJECTO_MECANICOI_CODE);	    int common = countEnrolments(GROUP_320_COMMON);	    int specific = countEnrolments(GROUP_320);	    if(common == 0) {		if(specific == 1) {		    List<String> coursesToRemove = Arrays.asList(GROUP_320);		    coursesToRemove.removeAll(Arrays.asList(GROUP_320_COMMON));		    removeCurricularCourses(curricularCoursesToBeEnrolledIn, coursesToRemove);		}	    } else {		if(specific == 2) {		    removeCurricularCourses(curricularCoursesToBeEnrolledIn, Arrays.asList(GROUP_320));		}	    }	} else {	    if(isEnrolledInExecutionPeriod(PRODUCAO_MECANICAI_CODE) || isEnrolledInExecutionPeriod(PROJECTO_MECANICOI_CODE)) {		removeCurricularCourse(curricularCoursesToBeEnrolledIn, DISSERTACAO_CODE);	    }	    	    int common = countEnrolments(GROUP_320_COMMON);	    int specific = countEnrolments(GROUP_320);	    if(common == 0) {		if(specific == 2) {		    List<String> coursesToRemove = Arrays.asList(GROUP_320);		    coursesToRemove.removeAll(Arrays.asList(GROUP_320_COMMON));		    removeCurricularCourses(curricularCoursesToBeEnrolledIn, coursesToRemove);		    removeCurricularCourse(curricularCoursesToBeEnrolledIn, DISSERTACAO_CODE);		}	    } else {		if(specific == 3) {		    removeCurricularCourses(curricularCoursesToBeEnrolledIn, Arrays.asList(GROUP_320));		    removeCurricularCourse(curricularCoursesToBeEnrolledIn, DISSERTACAO_CODE);		}	    }	}	return curricularCoursesToBeEnrolledIn;    }