anImport.setLocation(updated.toString());
}
}
TTypes[] types = definitions.getTypesArray();
for (int i = 0; i < types.length; i++) {
TTypes type = types[i];
XmlCursor typeCursor = type.newCursor();
try {
if (typeCursor.toChild(SCHEMA_QNAME)) {
do {
SchemaDocument.Schema schema = (SchemaDocument.Schema) typeCursor.getObject();
rewriteSchema(schema, contextURI, key);