String courseNodeId = courseNode.substring(0, courseNode.indexOf(':'));
Long resId = publisher.getResId();
ICourse course = CourseFactory.loadCourse(resId);
RepositoryManager rm = RepositoryManager.getInstance();
OLATResource rsrc = OLATResourceManager.getInstance().findResourceable(course.getResourceableId(), course.getResourceableTypeName());
RepositoryEntry re = rm.lookupRepositoryEntry(rsrc, true);
businessPath = "[RepositoryEntry:" + re.getKey() + "][CourseNode:" + courseNodeId + "]";
} catch (Exception e) {
businessPath = null;
//if something went wrong, like error while loading course...
logWarn("error while processing resid: "+publisher.getResId(), e);