ModelFactoryExtensionPoint factories = registry.getExtensionPoint(ModelFactoryExtensionPoint.class);
MessageFactory messageFactory = factories.getFactory(MessageFactory.class);
// Create the Echo model factory
EchoBindingFactory echoFactory = new DefaultEchoBindingFactory();
// Add the EchoProcessor extension
StAXArtifactProcessorExtensionPoint processors = registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class);
EchoBindingProcessor echoBindingProcessor = new EchoBindingProcessor(echoFactory);
processors.addArtifactProcessor(echoBindingProcessor);