code: private int rangeLimit(int size, int min, int max) {
          if (size < min) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Config: " + size + " too small");
              }
              return min;
          } else if (size > max) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Config: " + size + " too large");
              }
              return max;
          }
          return size;
      }
docs: Take the user input size variable and make sure it is inside
  the given range of min and max. If it is outside the range,
  then set the value to the closest limit.
  
  @param size
  @param min
  @param max
  @return int