for(Iterator iter = referencees.iterator(); iter.hasNext(); ) {
ReferenceImpl ref = (ReferenceImpl)iter.next();
if ("CourseModule".equals(ref.getSource().getResourceableTypeName())) {
ICourse course = CourseFactory.loadCourse(ref.getSource().getResourceableId());
CourseNode courseNode = course.getEditorTreeModel().getCourseNode(ref.getUserdata());
String repositorySoftKey = (String) courseNode.getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
List<QTIResult> results = QTIResultManager.getInstance().selectResults(course.getResourceableId(), courseNode.getIdent(), repKey, 1);
this.restrictedEdit = ((CoordinatorManager.getCoordinator().getLocker().isLocked(course, null)) || (results != null && results.size() > 0)) ? true : false;
}
if(restrictedEdit) break;
}
if(CoordinatorManager.getCoordinator().getLocker().isLocked(fileResource, null)) {