configuration.setRecordPerEventLocation(true);
recorder = factory.createSAXRecorder(configuration);
recordingHandler = recorder.getContentHandler();
if (pipeline != null) {
XMLProcess cap = new ContextAnnotatingProcess(true);
cap.setPipeline(pipeline);
XMLHandlerAdapter adapter = new XMLHandlerAdapter();
adapter.setContentHandler(recordingHandler);
cap.setNextProcess(adapter);
cap.startProcess();
streamAnnotatingProcess = cap;
recordingHandler = streamAnnotatingProcess;
}
}