if (isSecMgrOff) { return action.run(); } else { return AccessController.doPrivileged(action); }
if (isSecMgrOff) { try { return action.run(); } catch(Exception e) { throw new PrivilegedActionException(e); } } else { return AccessController.doPrivileged(action); }