OperationPipeline pipeline = WebServiceOperationType.TYPE.createNewTemplate();
WebServicePipelineBrowser browser = new WebServicePipelineBrowser(pipeline);
TransformationActivity a = isWebServiceRequest() ? browser.getRequestActivity() : browser.getResponseActivity();
a.setContent(tf);
PipelineAutoCompleter autoCompleter = new WebServiceAutoCompleter(itemLookup);
autoCompleter.complete(pipeline, a);
return pipeline;
}
private boolean isWebServiceRequest() {
return (tf.getOutputStructure() instanceof WebServiceRequestStructure);