private void preReadV1MsgSetting() {
        String tmpValue;
        // read whether response v1 message by sink
        tmpValue = compatGetValue(this.props,
                KEY_V1MSG_RESPONSE_BY_SINKV2, KEY_V1MSG_RESPONSE_BY_SINK);
        if (StringUtils.isNotEmpty(tmpValue)) {
            this.defV1MsgResponseBySink = "TRUE".equalsIgnoreCase(tmpValue.trim());
        }
        // read v1 msg compress type
        tmpValue = compatGetValue(this.props,
                KEY_V1MSG_SENT_COMPRESS_TYPEV2, KEY_V1MSG_SENT_COMPRESS_TYPE);
        if (StringUtils.isNotBlank(tmpValue)) {
            InlongCompressType tmpCompType = InlongCompressType.forType(tmpValue.trim());
            if (tmpCompType == InlongCompressType.UNKNOWN) {
                LOG.error("{}'s {}({}) must be in allowed range [{}], exist!", COMMON_CONFIG_FILE_NAME,
                        KEY_V1MSG_SENT_COMPRESS_TYPEV2, tmpValue, InlongCompressType.allowedCompressTypes);
                System.exit(2);
            }
            this.defV1MsgCompressType = tmpCompType;
        }
    }
getStringFromContext

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