FileWriter writer = new FileWriter(bkFile);
WSDLFactory factory
= WSDLFactory.newInstance("org.apache.cxf.tools.corba.utils.TestWSDLCorbaFactoryImpl");
WSDLReader reader = factory.newWSDLReader();
reader.setFeature("javax.wsdl.importDocuments", false);
ExtensionRegistry extReg = new ExtensionRegistry();
addExtensions(extReg);
reader.setExtensionRegistry(extReg);
Definition wsdlDefn = reader.readWSDL(defnFile.toString());
WSDLWriter wsdlWriter = factory.newWSDLWriter();
wsdlWriter.writeWSDL(wsdlDefn, writer);