final List<ExecutionDegree> executionDegrees = (degreeType == null) ? ExecutionDegree .getAllByExecutionYear(executionPeriod.getExecutionYear()) : ExecutionDegree .getAllByExecutionYearAndDegreeType(executionPeriod.getExecutionYear(), degreeType);
if (registration.getDegreeType().equals(DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA)) { return ExecutionDegree.getAllByExecutionYearAndDegreeType( executionPeriod.getExecutionYear(), DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA); }
	public List<ExecutionDegree> run(final Registration registration, final DegreeType degreeType,			final ExecutionPeriod executionPeriod) throws FenixServiceException {		final List<ExecutionDegree> executionDegrees = (degreeType == null) ? ExecutionDegree				.getAllByExecutionYear(executionPeriod.getExecutionYear()) : ExecutionDegree				.getAllByExecutionYearAndDegreeType(executionPeriod.getExecutionYear(), degreeType);		if (executionDegrees.isEmpty()) {			throw new FenixServiceException("errors.impossible.operation");		}		return executionDegrees;	}