Action executeResultHandler = PipelineFactory.newExecuteResultHandler();
Action assignResult = PipelineFactory.newAssignObjectAsResult();
assignResult.setReceiver( executeResultHandler );
KnowledgeRuntimeCommand batchExecution = PipelineFactory.newCommandExecutor();
batchExecution.setReceiver( assignResult );
KnowledgeRuntimeCommand insertStage = PipelineFactory.newInsertObjectCommand();
insertStage.setReceiver( batchExecution );
// Instantiate Smooks with the config...
Smooks smooks = new Smooks( getClass().getResourceAsStream( "smooks-config.xml" ) );
Transformer transformer = PipelineFactory.newSmooksFromSourceTransformer( smooks,