AuditInfo auditInfo = new AuditInfo(securityDomain);
List<ModelNode> modules = node.get(PROVIDER_MODULES).asList();
for (ModelNode module : modules) {
String codeName = module.require(CODE).asString();
Map<String, Object> options = extractOptions(module);
AuditProviderEntry entry = new AuditProviderEntry(codeName, options);
auditInfo.add(entry);
String moduleName = module.get(MODULE).asString();
if(module.hasDefined(MODULE) && moduleName != null && moduleName.length() > 0 ) {
auditInfo.setJBossModuleName(moduleName);