/**
   * is databaseValue.getMin() <= userValue.getMin()?
   *
   * @param databaseValue
   * @param userValue
   * @return true databaseValue.getMin() <= userValue.getMin();
   * @throws databaseValue == null or userValue == null
   */
  public boolean checkLessThanOrEquals(
      StatisticalMeasureType databaseValue, StatisticalMeasureType userValue) throws Exception {

    StatisticalMeasureType mindatabaseValue = new StatisticalMeasureType();
    mindatabaseValue.setMin(databaseValue.getMin());
    mindatabaseValue.setMax(mindatabaseValue.getMin());

    return (this.checkLessThan(databaseValue, userValue)
        || this.checkEquals(mindatabaseValue, userValue));
  }