code: public boolean isConflict() {
      if (getCause() != null && getCause() instanceof DatastoreException) {
        DatastoreException datastoreException = (DatastoreException) getCause();
        return datastoreException.getCode() == 10;
      } else {
        return false;
      }
    }
docs: TODO: represent the failure cause using an enum instead