code: protected Map<String, String> getElementAttributes() {
          // Preserve order of attributes
          Map<String, String> attrs = new HashMap<>();
  
          if (this.getTo() != null) {
              attrs.put("to", this.getTo());
          }
          if (this.getFrom() != null) {
              attrs.put("from", this.getFrom());
          }
          if (this.getAction() != null) {
              attrs.put("action", this.getAction().toString());
          }
          if (this.getMethod() != null) {
              attrs.put("method", this.getMethod().toString());
          }
          if (this.getStatusCallback() != null) {
              attrs.put("statusCallback", this.getStatusCallback().toString());
          }
  
          return attrs;
      }
docs: Attributes to set on the generated XML element
  
  @return A Map of attribute keys to values