webservices/server-integration/src/main/java/org/jboss/as/webservices/security/SecurityDomainContextImpl.java
private static SecurityContext createSecurityContext(final String domain) {
        return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {

            @Override
            public SecurityContext run() {
                try {
                    return SecurityContextFactory.createSecurityContext(domain);
                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
            }
        });
    }
private static SecurityContext createSecurityContext(final String domain) {
        return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {

            @Override
            public SecurityContext run() {
                try {
                    return SecurityContextFactory.createSecurityContext(domain);
                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
            }
        });
    }
private static SecurityContext createSecurityContext ( final String domain ) { return AccessController . doPrivileged ( new PrivilegedAction < SecurityContext > ( ) { @ Override public SecurityContext run ( ) { try { return SecurityContextFactory . createSecurityContext ( domain ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } } } ) ; }
Create a JBoss Security Context with the given security domain name

@param domain the security domain name (such as "other" )
@return an instanceof {@code SecurityContext}
Create a JBoss Security Context with the given security domain name