IdentityTrustInfo identityTrustInfo = new IdentityTrustInfo(securityDomain);
List<ModelNode> modules = node.get(TRUST_MODULES).asList();
for (ModelNode module : modules) {
String codeName = module.require(CODE).asString();
ControlFlag controlFlag = ControlFlag.valueOf(module.require(FLAG).asString());
Map<String, Object> options = extractOptions(module);
IdentityTrustModuleEntry entry = new IdentityTrustModuleEntry(codeName, options);
entry.setControlFlag(controlFlag);
identityTrustInfo.add(entry);