String namespace = getNamespace(javaType, xmlType.getNamespaceURI());
// Now that the schema object graph is built,
// ask JavaToXSD to provide a list of xsmodels to be plugged
// into WSDLTypes
if (xsModel == null)
throw new WSException("XSModel is null");
WSDLTypes wsdlTypes = wsdl.getWsdlTypes();
WSDLUtils.addSchemaModel(wsdlTypes, namespace, xsModel);
wsdl.registerNamespaceURI(namespace, null);