I found a bug by the way: At line: 176 in lookupSubmodel if isinstance(currentModel, defer.Deferred): currentModel.addCallback(adaptToIModel, element, parentModel) return currentModel The variable parentModel is not defined.