List<OLATResource> resources = BGContextManagerImpl.getInstance().findOLATResourcesForBGContext(businessGroup.getGroupContext());
for (Iterator<OLATResource> iter = resources.iterator(); iter.hasNext();) {
OLATResource resource = iter.next();
if (resource.getResourceableTypeName().equals(CourseModule.getCourseTypeName())) {
ICourse course = CourseFactory.loadCourse(resource);
CourseLinkProviderController clp = new CourseLinkProviderController(course, ureq, wControl);
calRenderWrapper.setLinkProvider(clp);
// for the time being only internal learning groups are supported, therefore we only get
// the first course reference.
break;
}