List<ModelNode> modules = node.get(POLICY_MODULES).asList();
for (ModelNode module : modules) {
String codeName = this.extractCode(module, ModulesMap.AUTHORIZATION_MAP);
ControlFlag controlFlag = ControlFlag.valueOf(module.require(FLAG).asString());
Map<String, Object> options = extractOptions(module);
AuthorizationModuleEntry authzModuleEntry = new AuthorizationModuleEntry(codeName, options);
authzModuleEntry.setControlFlag(controlFlag);
authzInfo.add(authzModuleEntry);
String moduleName = module.get(MODULE).asString();
if(module.hasDefined(MODULE) && moduleName != null && moduleName.length() > 0 ) {
authzInfo.setJBossModuleName(moduleName);