public String getOperationOrBlobId(boolean stripLeadingSlash) {
    if (stripLeadingSlash) {
      if (operationOrBlobIdWithoutLeadingSlash == null) {
        operationOrBlobIdWithoutLeadingSlash =
            operationOrBlobId.startsWith(PATH_SEPARATOR_STRING) ? operationOrBlobId.substring(1) : operationOrBlobId;
      }
      return operationOrBlobIdWithoutLeadingSlash;
    } else {
      return operationOrBlobId;
    }
  }
@return the extracted operation type or blob ID from the request.
@param stripLeadingSlash {@code true} to remove the leading slash, if present.
ambry-api/src/main/java/com/github/ambry/rest/RequestPath.java