class NotificationCourseAccessManager implements CourseAccessManager {

    ICourse getCourseFromCacheOrLoad(RepositoryEntry courseRepositoryEntry) {
        ICourse course = repositoryEntryToCourseCache.get(courseRepositoryEntry.getResourceableId());
        if (course == null) {
            OLATResourceable oLATResourceable = courseRepositoryEntry.getOlatResource();
            if (oLATResourceable != null) {
                course = CourseFactory.loadCourse(oLATResourceable);
                repositoryEntryToCourseCache.put(courseRepositoryEntry.getResourceableId(), course);
            }
        }
        return course;
    }

      NotificationCourseAccessManager();

}