// Create the JSONRPC model factory
JSONRPCBindingFactory JSONRPCFactory = new DefaultJSONRPCBindingFactory();
// Add the JSONRPCProcessor extension
StAXArtifactProcessorExtensionPoint processors = registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class);
JSONRPCBindingProcessor JSONRPCBindingProcessor = new JSONRPCBindingProcessor(JSONRPCFactory);
processors.addArtifactProcessor(JSONRPCBindingProcessor);
ProviderFactoryExtensionPoint providerFactories = registry.getExtensionPoint(ProviderFactoryExtensionPoint.class);
ServletHost servletHost = registry.getExtensionPoint(ServletHost.class);
providerFactories.addProviderFactory(new JSONRPCBindingProviderFactory(servletHost));