private String compatGetValue(Map<String, String> attrs, String newKey, String depKey) {
        String tmpValue = attrs.get(newKey);
        if (StringUtils.isBlank(tmpValue)) {
            tmpValue = attrs.get(depKey);
            if (StringUtils.isNotEmpty(tmpValue)) {
                LOG.warn("** Deprecated configure key {}, replaced by {} **", depKey, newKey);
            }
        }
        return tmpValue;
    }
getStringFromContext

@param context
@param key
@param defaultValue
@return
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java