}
return academicInterval;
}
private void hackBecauseJSFareReallyReallyReallyGreatButWeDontKnowAtWhat() {
AcademicInterval academicInterval = null;
if (getRequestAttribute(PresentationConstants.ACADEMIC_INTERVAL) != null) {
String academicIntervalStr = (String) getRequestAttribute(PresentationConstants.ACADEMIC_INTERVAL);
academicInterval = AcademicInterval.getAcademicIntervalFromResumedString(academicIntervalStr);
} else if (getRequestParameter(PresentationConstants.ACADEMIC_INTERVAL) != null) {
String academicIntervalStr = getRequestParameter(PresentationConstants.ACADEMIC_INTERVAL);
if (academicIntervalStr != null && !academicIntervalStr.equals("null")) {
final String academicIntervalStrArg =
academicIntervalStr.indexOf('-') > 0 ? academicIntervalStr.replaceAll("-", "_") : academicIntervalStr;
academicInterval = AcademicInterval.getAcademicIntervalFromResumedString(academicIntervalStrArg);
}
}
if (academicInterval == null) {
academicInterval = AcademicInterval.readDefaultAcademicInterval(AcademicPeriod.SEMESTER);
}
setRequestAttribute(PresentationConstants.ACADEMIC_INTERVAL, academicInterval.getResumedRepresentationInStringFormat());
}