Iterator keys = schemaMappings.keySet().iterator();
String key = null;
while (keys.hasNext()) {
key = (String) keys.next();
if (!key.startsWith("http")){
schemaWriter.writeSchema((XmlSchema) schemaMappings.get(key), key);
}
}
//switch between the correct writer
if (CommandLineOptionConstants.WSDL2JavaConstants.WSDL_VERSION_2.