class JsonConverter extends AbstractConfigurationConverter {

    Boolean readBooleanFromValue(final String key, final @Nullable Object value) throws ComponentConfigurationException {
        if (value instanceof Boolean) {
            return (Boolean) value;
        } else if (value instanceof String) {
            Object readValue = stringToValue((String) value);
            if (readValue instanceof Boolean) {
                return (Boolean) readValue;
            } else if (!isBlankish(readValue)) {
                throw new ComponentConfigurationException("Failed to parse value for key " + key + " as boolean.");
            }
        }
        return false;
    }

}