private AuditManager createAuditManager(String securityDomain) throws Exception {
        int i = auditManagerClassName.lastIndexOf(":");
        if (i == -1)
            throw SecurityLogger.ROOT_LOGGER.missingModuleName("audit manager class");
        String moduleSpec = auditManagerClassName.substring(0, i);
        String className = auditManagerClassName.substring(i + 1);
        Class<?> clazz = SecurityActions.getModuleClassLoader(loader, moduleSpec).loadClass(className);
        Constructor<?> ctr = clazz.getConstructor(new Class[] { String.class });
        return (AuditManager) ctr.newInstance(new Object[] { securityDomain });
    }
private AuditManager createAuditManager ( String securityDomain ) throws Exception { int i = auditManagerClassName . lastIndexOf ( ":" ) ; if ( i == - 1 ) throw SecurityLogger . ROOT_LOGGER . missingModuleName ( "audit manager class" ) ; String moduleSpec = auditManagerClassName . substring ( 0 , i ) ; String className = auditManagerClassName . substring ( i + 1 ) ; Class < ? > clazz = SecurityActions . getModuleClassLoader ( loader , moduleSpec ) . loadClass ( className ) ; Constructor < ? > ctr = clazz . getConstructor ( new Class [ ] { String . class } ) ; return ( AuditManager ) ctr . newInstance ( new Object [ ] { securityDomain } ) ; }
Creates an {@code AuditManager}

@param securityDomain name of the security domain
@return an instance of {@code AuditManager}
@throws Exception if creation fails