public Manifest run() throws Exception { return finder.findManifest(clazz); } });
/** * Get manifest for class. * * @param clazz the class to check * @return manifest if found, else null * @throws Exception for any error */ public static Manifest getManifest(final Class<?> clazz) throws Exception { SecurityManager sm = System.getSecurityManager(); if (sm != null) return AccessController.doPrivileged(new PrivilegedExceptionAction<Manifest>() { public Manifest run() throws Exception { return finder.findManifest(clazz); } }); else return finder.findManifest(clazz); } }