code: public Integer getInteger(String key){
          try {
              return Integer.valueOf(resource.getString(key));
          } catch (MissingResourceException e) {
              return new Integer(-1);
          }
      }
docs: /*
  Gets the integer from the properties.
  
  @param key the key of the property.
  
  @return the value of the key. return -1 if the value is not found.