ModelFactoryExtensionPoint factories = new DefaultModelFactoryExtensionPoint();
wsdlFactory = new DefaultWSDLFactory();
factories.addFactory(wsdlFactory);
javax.wsdl.factory.WSDLFactory wsdl4jFactory = javax.wsdl.factory.WSDLFactory.newInstance();
factories.addFactory(wsdl4jFactory);
registry = new WSDLDocumentProcessor(factories);
resolver = new TestModelResolver();
URL url = getClass().getResource("../xml/stockquote.wsdl");
definition = registry.read(null, new URI("stockquote.wsdl"), url);
WSDLModelResolver wsdlResolver = new WSDLModelResolver(null, factories);
wsdlResolver.addModel(definition);