SchemaDocument.Schema schema = schemaDocument.getSchema();
rewriteSchema(schema, contextURI, key);
String schemaString = xmlObjectToString(schemaDocument);
wsdlMap.put(key.toString(), schemaString);
} else if (value instanceof DefinitionsDocument) {
DefinitionsDocument doc = (DefinitionsDocument) ((DefinitionsDocument) value).copy();
TDefinitions definitions = doc.getDefinitions();
TImport[] imports = definitions.getImportArray();
for (int i = 0; i < imports.length; i++) {
TImport anImport = imports[i];
String importLocation = anImport.getLocation().trim();
if (!importLocation.startsWith("http://")) {