code: public static int getInt(CSProperties p, String key) throws ParseException {
          String val = p.get(key).toString();
          if (val == null) {
              throw new IllegalArgumentException(key);
          }
          return Integer.parseInt(val);
      }
docs: Get a value as integer.
  @param p
  @param key
  @return a property value as integer.
  @throws java.text.ParseException