/** * Returns the Boolean value associated with the specified key, or the default value if the key * does not exist. Boolean values can be converted from: 0, 1, true, false. * * @param key The key to look up. * @param defaultValue The default value. * @return The Boolean value associated with the specified key. */ boolean getBoolean(String key, boolean defaultValue) { if (toUpdate.containsKey(key)) return Value.toBoolean(toUpdate.get(key).toString()); return getContent().getBoolean(key, defaultValue); }