File wadlParent = this._wadlFile.getParentFile();
Set<String> externalMetadataKeys = ad.getExternalMetadataKeys();
List<String> hrefs = new ArrayList<String>();
for (String key : externalMetadataKeys) {
ExternalGrammar externalGrammar = ad.getExternalGrammar(key);
File externalFile = new File(wadlParent, key);
OutputStream externalGrammarOutputStream = new BufferedOutputStream(new FileOutputStream(externalFile));
try {
externalGrammarOutputStream.write(externalGrammar.getContent());
this.getLog().info("Wrote " + externalFile);
} finally {
externalGrammarOutputStream.close();
}
hrefs.add(key);