void writeWsdlDefinitions(){
ResourceSet resourceSet = new ResourceSetImpl();
Resource.Factory.Registry registry = resourceSet
.getResourceFactoryRegistry();
Map extensionToFactoryMap = registry.getExtensionToFactoryMap();
extensionToFactoryMap.put("wsdl", new WSDLResourceFactoryImpl());
Iterator<Definition> wsdlDefs = this.wsdlDefMap.values().iterator();
while(wsdlDefs.hasNext()){
Definition wsdl = wsdlDefs.next();
addWsdlImports(wsdl);