src/main/java/org/jmxtrans/agent/util/ConfigurationUtils.java
public static String getString(Map<String, String> settings, String name, String defaultValue) {
        if (settings.containsKey(name)) {
            return settings.get(name);
        } else {
            return defaultValue;
        }
    }
public static String getString(Map<String, String> settings, String name, String defaultValue) {
        if (settings.containsKey(name)) {
            return settings.get(name);
        } else {
            return defaultValue;
        }
    }
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.