code: public boolean getBoolean(String key, boolean def) {
          Object tmp = objectMap.get(key);
          return tmp != null && tmp instanceof Boolean ? (Boolean) tmp : def;
      }
docs: get boolean value.
  
  @param key key.
  @param def default value.
  @return value or default value.