// Create a data source resource
DataSourceResource dataSource = drer.createDataSourceResource();
// Build up a workflow
PipelineWorkflow pipeline = new PipelineWorkflow();
TupleFactory tupleFactory = new TupleFactory();
pipeline.add(tupleFactory);
RepeatedSample repeatedSample = new RepeatedSample();
repeatedSample.addSampleSize(sampleSize);
repeatedSample.addSampleRepeat(sampleRepeat);
repeatedSample.connectDataInput(tupleFactory.getDataOutput());
pipeline.add(repeatedSample);
TupleToWebRowSetCharArrays tupleToWebRowSet =
new TupleToWebRowSetCharArrays();
tupleToWebRowSet.connectDataInput(repeatedSample.getResultOutput());
pipeline.add(tupleToWebRowSet);
WriteToDataSource writeToDataSource =
new WriteToDataSource();
writeToDataSource.setResourceID(dataSource.getResourceID());
writeToDataSource.connectInput(tupleToWebRowSet.getResultOutput());
pipeline.add(writeToDataSource);
tupleToWebRowSet.getResultOutput().setDataSourceResource(dataSource);
// send it to the server
RequestResource request =