static void setSecurityContextOnAssociation(final SecurityContext sc) {
        if (WildFlySecurityManager.isChecking()) {
            WildFlySecurityManager.doUnchecked(new PrivilegedAction<Void>() {
                @Override
                public Void run() {
                    SecurityContextAssociation.setSecurityContext(sc);
                    return null;
                }
            });
        } else {
            SecurityContextAssociation.setSecurityContext(sc);
        }
    }
static void setSecurityContextOnAssociation(final SecurityContext sc) {
        if (WildFlySecurityManager.isChecking()) {
            WildFlySecurityManager.doUnchecked(new PrivilegedAction<Void>() {
                @Override
                public Void run() {
                    SecurityContextAssociation.setSecurityContext(sc);
                    return null;
                }
            });
        } else {
            SecurityContextAssociation.setSecurityContext(sc);
        }
    }
static void setSecurityContextOnAssociation ( final SecurityContext sc ) { if ( WildFlySecurityManager . isChecking ( ) ) { WildFlySecurityManager . doUnchecked ( new PrivilegedAction < Void > ( ) { @ Override public Void run ( ) { SecurityContextAssociation . setSecurityContext ( sc ) ; return null ; } } ) ; } else { SecurityContextAssociation . setSecurityContext ( sc ) ; } }
Set the {@code SecurityContext} on the {@code SecurityContextAssociation}

@param sc the security context
Set the { @code SecurityContext } on the { @code SecurityContextAssociation }