public static T doPrivileged()

in src/main/java/org/elasticsearch/utils/PermissionHelper.java [20:30]


    public static <T> T doPrivileged(PrivilegedExceptionAction<T> operation) throws IOException {
        SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            sm.checkPermission(new SpecialPermission());
        }
        try {
            return AccessController.doPrivileged((PrivilegedExceptionAction<T>)operation::run);
        } catch (PrivilegedActionException e) {
            throw (IOException)e.getException();
        }
    }