private boolean processAudit(String securityDomain, ModelNode node, ApplicationPolicy applicationPolicy) {
node = peek(node, AUDIT, CLASSIC);
if (node == null)
return false;
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);
}
}
applicationPolicy.setAuditInfo(auditInfo);
return true;
}