private Map<String, String> constructLinkParameters(final ExecutionCourse executionCourse,
final WrittenEvaluation writtenEvaluation) {
final ExecutionSemester executionSemester = executionCourse.getExecutionPeriod();
final ExecutionDegree executionDegree = findExecutionDegree(executionCourse);
final Integer year = findCurricularYear(executionCourse);
CurricularYear curricularYear = CurricularYear.readByYear(year);
final Map<String, String> linkParameters = new HashMap<String, String>();
linkParameters.put("executionCourseID", executionCourse.getExternalId().toString());
linkParameters.put("evaluationID", writtenEvaluation.getExternalId().toString());
linkParameters.put("executionPeriodID", executionSemester.getExternalId().toString());
linkParameters.put("executionDegreeID", executionDegree.getExternalId().toString());
if (curricularYear != null) {
linkParameters.put("curricularYearID", curricularYear.getExternalId().toString());
}
linkParameters.put("evaluationTypeClassname", writtenEvaluation.getClass().getName());
linkParameters.put("academicInterval", getAcademicInterval());
return linkParameters;
}