// failure at design time has already been shown as dialog. Quit silently
return null;
}
// have StructureProvider build a StructureDef for root data node (XSD Element or ComplexType)
StructureProvider structProv = defNode.getProviderInstance(StructureProvider.class);
TypeMapper typeMapper = defNode.getProviderInstance(TypeMapper.class);
MovableStructureDefinition structDef =
structProv.buildStructure(rootDataNode, getReturnStructName(rootStruct, defNode), typeMapper);
// create MethodDef with StructureDef from StructureProvider as return value
final MethodDef method = new MethodDef(defNode.getDatacontrolOperation(), rootStruct);
rootStruct.addMethod(method);