@SuppressWarnings("unchecked")
void addWsdlImports(Definition wsdl){
Vector<XSDSchema> dependencies = wsdlDependencies.get(wsdl);
if (dependencies != null){
for (XSDSchema schema : dependencies){
Import xsdImport = WSDLFactory.eINSTANCE.createImport();
xsdImport.setSchema(schema);
String fileName = schemaFileMap.get(schema);//schema.getSchemaLocation();
xsdImport.setLocationURI(fileName);
xsdImport.setNamespaceURI(schema.getTargetNamespace());
wsdl.addImport(xsdImport);
wsdl.addNamespace(schemaNsPrefixMap.get(schema.getTargetNamespace()), schema.getTargetNamespace());
Types types = wsdl.getETypes();
List<XSDSchema> schemas = types.getSchemas();
if (schemas.size() == 1){