code: public int getAttempts() {
          String attempts = this.properties.get("attempts");
          if (attempts == null) {
              attempts = "0";
          }
  
          return Integer.parseInt(attempts);
      }
docs: The number of completed attempts to process this task.
  
  @return