XMLProcess cap = new ContextAnnotatingProcess(true);
cap.setPipeline(pipeline);
XMLHandlerAdapter adapter = new XMLHandlerAdapter();
adapter.setContentHandler(recordingHandler);
cap.setNextProcess(adapter);
cap.startProcess();
streamAnnotatingProcess = cap;
recordingHandler = streamAnnotatingProcess;
}
}