// Throws IOException on load failure.
InMemoryJarfile jarfile = loadInMemoryJarFile(catalogBytes);
// Let VoltCompiler do a version check and upgrade the catalog on the fly.
// I.e. jarfile may be modified.
VoltCompiler compiler = new VoltCompiler();
String upgradedFromVersion = compiler.upgradeCatalogAsNeeded(jarfile);
return new Pair<InMemoryJarfile, String>(jarfile, upgradedFromVersion);
}
/**
* Convenience method to extract the catalog commands from an InMemoryJarfile as a string