172173174175176177178179180181182
DefinitionImpl def = (DefinitionImpl)doc.getDefinition(); Import impElem = imp.getImport(); if(impElem != null) { def.addImport(impElem); if(!imp.isWSDLFileImport()) { doc.addSchemas(imp.getSchemas()); } }