OLATResourceable resourceable = new OLATResourceable() {
public String getResourceableTypeName() { return CourseModule.getCourseTypeName();}
public Long getResourceableId() {return new Long(ifin);}
};
OLATResource r = resm.createOLATResourceInstance(resourceable);
db.saveObject(r);
// now make a repository entry for this course
RepositoryEntry re = rm.createRepositoryEntryInstance("Florian Gnägi", "Lernen mit OLAT " + i, "yo man description bla bla + i");
re.setDisplayname("JunitTest_RepositoryEntry_" + i);
re.setOlatResource(r);