return new QueryImpl<ModelElementInstance>(getElements());
}
public ModelElementInstance addExtensionElement(String namespaceUri, String localName) {
ModelElementType extensionElementType = modelInstance.registerGenericType(namespaceUri, localName);
ModelElementInstance extensionElement = extensionElementType.newInstance(modelInstance);
getElements().add(extensionElement);
return extensionElement;
}