code: public Integer getInt(String name, Integer def) {
          final String s = getProperty(name);
          try {
              return Integer.parseInt(s);
          } catch (Exception e) {
              return def;
          }
      }
docs: Returns the property assuming its an int. If it isn't or if its not
  defined, returns default value
  
  @param name Property name
  @param def Default value
  
  @return Property value or def