code: public static int getInt(String prop, DatasetDescriptor descriptor,
                              int defaultValue) {
      long asLong = getLong(prop, descriptor, defaultValue);
      if (asLong > Integer.MAX_VALUE) {
        return defaultValue;
      } else {
        return (int) asLong;
      }
    }
docs: Returns the value of the property parsed as an int, or the default value.
  <p>
  If the value cannot be parsed as an int or if the value is larger than the
  maximum value of an int, this will return the default value.
  
  @param prop a String property name
  @param descriptor a {@link DatasetDescriptor}
  @param defaultValue default value if prop is not present or is invalid
  @return the value of prop parsed as an int or the default value