code: public static boolean getBoolean(Map<String, String> settings, String name, boolean defaultValue) {
          if (settings.containsKey(name)) {
  
              String value = settings.get(name);
              return Boolean.parseBoolean(value);
  
          } else {
              return defaultValue;
          }
      }
docs: Convert value of this setting to a Java <b>boolean</b> (via {@link Boolean#parseBoolean(String)}).
  
  If the property is not found, the <code>defaultValue</code> is returned.
  
  @param name         name of the property
  @param defaultValue default value if the property is not defined.
  @return int value of the property or <code>defaultValue</code> if the property is not defined.