code: public StatusDetail withDetail(final String key, final String value) {
          final LinkedHashMap<String, String> newDetails = new LinkedHashMap<>(details);
          newDetails.put(key, value);
          return statusDetail(name,status,message, newDetails);
      }
docs: Create a copy of this StatusDetail, add a detail and return the new StatusDetail.
  
  @param key the key of the additional detail
  @param value the value of the additional detail
  @return StatusDetail