code: public static int getInteger(String propertyName, int defaultValue) {
          String tmpObj = get(propertyName);
  
          if (tmpObj != null) {
              try {
                  return Integer.parseInt(tmpObj);
              } catch (NumberFormatException e) {
              }
          }
          return defaultValue;
      }
docs: Retrieve the value of the specified property from framework/system properties.
  Value is converted and returned as an int.
  
  @param propertyName Name of property
  @param defaultValue Default value to return if property is not set
  @return Property or default value as an int