factories.addFactory(resourceFactory);
// Add the resource binding extension to the StAXArtifactProcessor
// extension point
StAXArtifactProcessorExtensionPoint processors = registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class);
HTTPResourceBindingProcessor bindingArtifactProcessor = new HTTPResourceBindingProcessor(bindingFactory);
processors.addArtifactProcessor(bindingArtifactProcessor);
// Add the resource implementation extension to the StAXArtifactProcessor
// extension point
ContributionFactory contributionFactory = factories.getFactory(ContributionFactory.class);