private static void saveDefinition(String fileBaseName, Definition definition, File targetFolder) {
if (targetFolder.exists() == false || targetFolder.isDirectory() == false) {
throw new IllegalArgumentException("Target folder does not exist or is not a folder [" + targetFolder.getPath() + "]");
}
Wsdl11Writer writer = new Wsdl11Writer(targetFolder);
writer.writeWSDL(fileBaseName, definition);
}
private static URL getSavedWsdlUrl(String fileBaseName, File targetFolder) {
File file = new File(targetFolder, fileBaseName + ".wsdl");
try {