// create a pipeline
XMLPipeline pipeline = factory.createDynamicPipeline(context);
// create a dynamic process
dynamicProcess = factory.createDynamicProcess(
new SimpleDynamicProcessConfiguration());
// finally, register the pipeline with the dynamic process
dynamicProcess.setPipeline(pipeline);
}