}
});
} catch (PrivilegedActionException e) {
final Throwable cause = e.getCause();
if (cause instanceof IllegalAccessException) {
throw new MethodInvokeException(
"Not allowed to invoke post construct method "
+ javaMethod, cause);
}
if (cause instanceof InvocationTargetException) {
throw (InvocationTargetException) cause;
}
if (cause instanceof ExceptionInInitializerError) {
throw new MethodInvokeException(
"Could not invoke post construct method " + javaMethod,
cause);
}
if (cause instanceof RuntimeException) {
throw (RuntimeException) cause;