code: public Integer getLimit() {
      String limitFromRequest =
          uriInfo.getQueryParameters().getFirst(LimitParameter.getDefaultLimitFieldName());
  
      return limitFromRequest != null ? new LimitParameter(limitFromRequest).getValue()
          : LimitParameter.getDefaultLimit();
    }
docs: Retrieves the value of the limit field from the request. Will use the configured field name
  to find the parameter.
  
  @return The value of the limit.