private void checkRange(Integer aValue, int aMin, int aMax, String aName) {
    if(aValue != null){
      if (aValue < aMin || aValue > aMax){
        throw new ItemOutOfRange(aName + " is not in the range " + aMin + ".." + aMax + ". Value is:" + aValue);
      }
    }
  }