public static void setUp() throws Exception {
final DefaultExtensionPointRegistry ep = new DefaultExtensionPointRegistry();
final ContributionFactory contribFactory = new DefaultContributionFactory();
final Contribution contrib = contribFactory.createContribution();
contrib.setLocation(ReadWriteTestCase.class.getProtectionDomain().getCodeSource().getLocation().toString());
final Monitor mon = new DefaultMonitorFactory().createMonitor();
ctx = new ProcessorContext(contrib, mon);
xif = XMLInputFactory.newInstance();
xof = XMLOutputFactory.newInstance();
final StAXArtifactProcessorExtensionPoint xpep = new DefaultStAXArtifactProcessorExtensionPoint(ep);
xproc = new ExtensibleStAXArtifactProcessor(xpep, xif, xof);