public void setParentType(JAXBStructuredType parent) {
if (_parentType != null &&
parent != null &&
!_parentType.equals(parent)) {
throw new ModelException("model.parent.type.already.set",
new Object[] { getName().toString(),
_parentType.getName().toString(),
parent.getName().toString()});
}
this._parentType = parent;