.doPrivileged(new PrivilegedExceptionAction<PluginJar>() {
public PluginJar run() throws PluginException, IOException {
final ByteBuffer buf = loader.getPluginBuffer(pluginReference);
if (buf == null) {
throw new PluginException(
"Plugin " + pluginReference + " not found");
}
return new PluginJar(registry, buf, null);
}
});
} catch (PrivilegedActionException pax) {
final Throwable ex = pax.getException();
if (ex instanceof PluginException) {
throw (PluginException) ex;
} else {
throw new PluginException(ex);
}
}
return pluginJar.getDescriptorModel();
}