public static void makeAccessible(final AccessibleObject ao) {
        if (!ao.isAccessible()) {
            AccessController.doPrivileged(new PrivilegedAction<Void>() {
                @Override
                public Void run() {
                    ao.setAccessible(true);
                    return null;
                }
            });
        }
    }