code: def loadFile(self, fileName, rtiClass=None,
                   position=None, parentIndex=QtCore.QModelIndex()):
          
          logger.info("Loading data from: {!r}".format(fileName))
          if rtiClass is None:
              repoTreeItem = createRtiFromFileName(fileName)
          else:
              repoTreeItem = rtiClass.createFromFileName(fileName)
          assert repoTreeItem.parentItem is None, "repoTreeItem {!r}".format(repoTreeItem)
          return self.insertItem(repoTreeItem, position=position, parentIndex=parentIndex)
docs: Loads a file in the repository as a repo tree item of class rtiClass.
              Autodetects the RTI type if rtiClass is None.
              If position is None the child will be appended as the last child of the parent.
              Returns the index of the newly inserted RTI