in src/main/java/org/apache/sling/installer/factories/deploypck/impl/DeploymentPackageInstaller.java [92:120]
private Manifest getManifest(final InputStream ins) throws IOException {
Manifest result = null;
if ( ins != null ) {
JarInputStream jis = null;
try {
jis = new JarInputStream(ins);
result= jis.getManifest();
} finally {
// close the jar stream or the inputstream, if the jar
// stream is set, we don't need to close the input stream
// since closing the jar stream closes the input stream
if (jis != null) {
try {
jis.close();
} catch (final IOException ignore) {
}
} else {
try {
ins.close();
} catch (final IOException ignore) {
}
}
}
}
return result;
}