code: public static String getString(Map<String, String> settings, String name, String defaultValue) {
          if (settings.containsKey(name)) {
              return settings.get(name);
          } else {
              return defaultValue;
          }
      }
docs: Return the value of the given property.
  
  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 value of the property or <code>defaultValue</code> if the property is not defined.