private void rollupParameters(TLParamGroup sourceParamGroup, TLParamGroup targetParamGroup,
        RollupReferenceHandler referenceHandler, ModelElementCloner cloner) {
        for (TLParameter sourceParam : sourceParamGroup.getParameters()) {
            TLMemberField<?> sourceFieldRef = sourceParam.getFieldRef();
            if (sourceFieldRef != null) {
                TLParameter targetParam = targetParamGroup.getParameter( sourceFieldRef.getName() );
                if (targetParam == null) {
                    targetParam = cloner.clone( sourceParam ); // TODO: After cloning, targetParam.fieldRef is null
                    targetParamGroup.addParameter( targetParam );
                    referenceHandler.captureRollupReferences( targetParam );
                }
                if (targetParam.getDocumentation() == null) {
                    targetParam.setDocumentation( cloner.clone( sourceParam.getDocumentation() ) );
                }
            }
        }
    }
private void rollupParameters(TLParamGroup sourceParamGroup, TLParamGroup targetParamGroup,
        RollupReferenceHandler referenceHandler, ModelElementCloner cloner) {
        for (TLParameter sourceParam : sourceParamGroup.getParameters()) {
            TLMemberField<?> sourceFieldRef = sourceParam.getFieldRef();
            if (sourceFieldRef != null) {
                TLParameter targetParam = targetParamGroup.getParameter( sourceFieldRef.getName() );
                if (targetParam == null) {
                    targetParam = cloner.clone( sourceParam );
                    targetParamGroup.addParameter( targetParam );
                    referenceHandler.captureRollupReferences( targetParam );
                }
                if (targetParam.getDocumentation() == null) {
                    targetParam.setDocumentation( cloner.clone( sourceParam.getDocumentation() ) );
                }
            }
        }
    }
private void rollupparameters(tlparamgroup sourceparamgroup, tlparamgroup targetparamgroup, rollupreferencehandler referencehandler, modelelementcloner cloner) { for (tlparameter sourceparam : sourceparamgroup.getparameters()) { tlmemberfield<?> sourcefieldref = sourceparam.getfieldref(); if (sourcefieldref != null) { tlparameter targetparam = targetparamgroup.getparameter( sourcefieldref.getname() ); if (targetparam == null) { targetparam = cloner.clone( sourceparam ); targetparamgroup.addparameter( targetparam ); referencehandler.capturerollupreferences( targetparam ); } if (targetparam.getdocumentation() == null) { targetparam.setdocumentation( cloner.clone( sourceparam.getdocumentation() ) ); } } } }