code: protected Map<String, String> getElementAttributes() {
          // Preserve order of attributes
          Map<String, String> attrs = new HashMap<>();
  
          if (this.getFor_() != null) {
              attrs.put("for_", this.getFor_().toString());
          }
          if (this.getErrorTypes() != null) {
              attrs.put("errorType", this.getErrorTypesAsString());
          }
          if (this.getCardTypes() != null) {
              attrs.put("cardType", this.getCardTypesAsString());
          }
          if (this.getAttempts() != null) {
              attrs.put("attempt", this.getAttemptsAsString());
          }
  
          return attrs;
      }
docs: Attributes to set on the generated XML element
  
  @return A Map of attribute keys to values