+ if(attributeResolvingStrategy instanceof EnumAttributeResolvingStrategy) {
+ // Open type for enum contain the class name necessary for its resolution, however in a DTO
+ // the open type need to be just SimpleType.STRING so that JMX is happy
+ // After the enum attribute is resolved, change its open type back to STRING
+ openTypes.put(innerAttrNameStr, SimpleType.STRING);
+ } else {
+ openTypes.put(innerAttrNameStr, attributeResolvingStrategy.getOpenType());
+ }