}
public ModelElementInstance newInstance(ModelInstance modelInstance) {
ModelInstanceImpl modelInstanceImpl = (ModelInstanceImpl) modelInstance;
DomDocument document = modelInstanceImpl.getDocument();
DomElement domElement = document.createElement(typeNamespace, typeName);
return newInstance(modelInstanceImpl, domElement);
}
public ModelElementInstance newInstance(ModelInstanceImpl modelInstance, DomElement domElement) {
ModelTypeInstanceContext modelTypeInstanceContext = new ModelTypeInstanceContext(domElement, modelInstance, this);