connector/src/main/java/org/jboss/as/connector/util/SecurityActions.java
static void setAccessible(final AccessibleObject ao) {
        if (System.getSecurityManager() == null)
            ao.setAccessible(true);

        AccessController.doPrivileged(new PrivilegedAction<Object>() {
            public Object run() {
                ao.setAccessible(true);
                return null;
            }
        });
    }
static void setAccessible(final AccessibleObject ao) {
        if (System.getSecurityManager() == null)
            ao.setAccessible(true);

        AccessController.doPrivileged(new PrivilegedAction<Object>() {
            public Object run() {
                ao.setAccessible(true);
                return null;
            }
        });
    }
Set accessibleo

@param ao The object