code: public int getInteger(String key, int defaultValue) {
          int result = defaultValue;
          try {
              if (key != null)
                  result = getInteger(key);
          } catch (MissingResourceException e) {
          }
          return result;
      }
docs: Not sure why this is here. Looks like it is a replacement for
  Integer.getInteger with error checking for the key (non-null
  check).