try {
Archive archive = createArchive(ediSpecificationReader, urn);
// Now output the generated archive...
archive.toOutputStream(modelSetOutStream);
} catch (Throwable t) {
logger.fatal("Error while generating EDI Mapping Model archive for '" + urn + "'.", t);
} finally {
modelSetOutStream.close();
}