code: public Map<String, String> getCustomFields() {
          Map<String, String> fields = new HashMap<String, String>();
          for (CustomField f : customFields) {
              fields.put(f.getName(), f.getValue());
          }
          return fields;
      }
docs: Returns the map of custom fields for the template. This is a map of
  String field names to String field values.
  
  @return Map