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);
// add parameters to method-definition if data provider has dynamic parameters
{
final Set<DynamicParameter> dynamicParams = defNode.getDynamicParams();
if (dynamicParams != null) {