Iterator filesIter = files.iterator();
while(filesIter.hasNext())
{
WSDLDocument doc = (WSDLDocument)filesIter.next();
DefinitionImpl def = (DefinitionImpl)doc.getDefinition();
Import impElem = imp.getImport();
if(impElem != null)
{
def.addImport(impElem);
if(!imp.isWSDLFileImport())
{
doc.addSchemas(imp.getSchemas());
}
}