File installDir = Directories.getAssemblyInstallDir(this.container.getWorkingDir(), name);
if (!unzip.renameTo(installDir)) {
throw new IOException("Could not rename directory: " + unzip);
}
// Create assembly
Assembly assembly = this.registry.addAssembly(name);
assembly.setDescriptor(new JbiDescriptor(jbi));
assembly.setInstallRoot(installDir.getAbsolutePath());
String result = assembly.deploy();
return result;
} catch (Exception e) {
LOGGER.error("Could not install shared library", e);
throw new RuntimeException("Could not install shared library", e);
} finally {