code: private Map<String, Object> toMap(CompositeData value) {
          Map<String, Object> data = new HashMap<String, Object>();
          for(String key : value.getCompositeType().keySet()) {
              data.put(key, value.get(key));
          }
          return data;
      }
docs: Returns the CompositeData value as a Map.
  
  @param value CompositeData value to format.
  
  @return the CompositeData value as a Map.