private void importWSDL(ImportSDO importSDO, ModelResolver resolver) throws ContributionResolveException {
String location = importSDO.getSchemaLocation();
if (location != null) {
try {
URL wsdlURL = null;
ResourceReference reference = new ResourceReference(location);
ResourceReference resolved = resolver.resolveModel(ResourceReference.class, reference);
if (resolved == null || resolved.isUnresolved()) {
ContributionResolveException loaderException =
new ContributionResolveException("Fail to resolve location: " + location);
throw loaderException;
}
wsdlURL = resolved.getResource();
InputStream xsdInputStream = wsdlURL.openStream();
try {
XSDHelper xsdHelper = importSDO.getHelperContext().getXSDHelper();
xsdHelper.define(xsdInputStream, wsdlURL.toExternalForm());
} finally {