- policyMsg.getAai().put("vserver.is-closed-loop-disabled",
- String.valueOf(vmEntity.getClosedLoopDisable()));
+ try {
+ policyMsg.getAai().put("vserver.is-closed-loop-disabled",
+ Boolean.valueOf(vmEntity.getClosedLoopDisable()).booleanValue());
+ } catch (Exception e) {
+ log.error("Failed to parse the field \"is-closed-loop-disabled\". A boolean string (\"true\"/\"false\")"
+ + " is expected but the actual value is " + vmEntity.getClosedLoopDisable() + ".", e);
+ }