// TODO: After cloning, targetParam.fieldRef is null
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() ) );
                }
            }
        }
    }
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 );
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 ); // TODO: After cloning, targetParam.fieldRef is null
targetParamGroup.addParameter( targetParam );
referenceHandler.captureRollupReferences( targetParam );
}
if (targetParam.getDocumentation() == null) {
targetParam.setDocumentation( cloner.clone( sourceParam.getDocumentation() ) );
}
}
}
}