code: public int getInteger(String key, int defaultValue) {
  
          Object value = m_configurationObjects.get(key);
  
          if (value instanceof Integer) {
              return ((Integer)value).intValue();
  
          } else if (value instanceof String) {
              Integer i = new Integer((String)value);
              m_configurationObjects.put(key, i);
              return i.intValue();
  
          } else {
              return defaultValue;
          }
      }
docs: Returns the integer associated with the given parameter,
  or the default value in case there is no integer value for this parameter.<p>
  
  @param key the parameter to look up the value for
  @param defaultValue the default value
  
  @return the integer associated with the given parameter,
  or the default value in case there is no integer value for this parameter