private void preReadManagerSetting() {
        String tmpValue;
        // read manager hosts
        String managerHosts = this.props.get(KEY_MANAGER_HOSTS);
        if (StringUtils.isBlank(managerHosts)) {
            LOG.error("Value of {} is required in {}, exit!", KEY_MANAGER_HOSTS, COMMON_CONFIG_FILE_NAME);
            System.exit(2);
        }
        managerHosts = managerHosts.trim();
        String[] hostPort;
        String[] hostPortList = managerHosts.split(VAL_CONFIG_ITEMS_SEPARATOR);
        for (String tmpItem : hostPortList) {
            if (StringUtils.isBlank(tmpItem)) {
                continue;
            }
            hostPort = tmpItem.split(KEY_MANAGER_HOST_PORT_SEPARATOR);
            if (hostPort.length != 2
                    || StringUtils.isBlank(hostPort[0])
                    || StringUtils.isBlank(hostPort[1])) {
                continue;
            }
            managerIpList.add(hostPort[0].trim() + KEY_MANAGER_HOST_PORT_SEPARATOR + hostPort[1].trim());
        }
        if (managerIpList.isEmpty()) {
            LOG.error("Invalid value {} in configure item {}, exit!", managerHosts, KEY_MANAGER_HOSTS);
            System.exit(2);
        }
        // read manager auth secret id
        tmpValue = compatGetValue(this.props,
                KEY_MANAGER_AUTH_SECRET_IDV2, KEY_MANAGER_AUTH_SECRET_ID);
        if (StringUtils.isNotBlank(tmpValue)) {
            this.managerAuthSecretId = tmpValue.trim();
        }
        // read manager auth secret key
        tmpValue = compatGetValue(this.props,
                KEY_MANAGER_AUTH_SECRET_KEYV2, KEY_MANAGER_AUTH_SECRET_KEY);
        if (StringUtils.isNotBlank(tmpValue)) {
            this.managerAuthSecretKey = tmpValue.trim();
        }
        // read enable startup using local meta file
        tmpValue = compatGetValue(this.props,
                KEY_ENABLE_STARTUP_USING_LOCAL_META_FILEV2, KEY_ENABLE_STARTUP_USING_LOCAL_META_FILE);
        if (StringUtils.isNotEmpty(tmpValue)) {
            this.enableStartupUsingLocalMetaFile = "TRUE".equalsIgnoreCase(tmpValue.trim());
        }
        // read configure sync interval
        tmpValue = compatGetValue(this.props,
                KEY_META_CONFIG_SYNC_INTERVAL_MS, KEY_CONFIG_CHECK_INTERVAL_MS);
        if (StringUtils.isNotEmpty(tmpValue)) {
            long tmpSyncInvMs = NumberUtils.toLong(
                    tmpValue.trim(), VAL_DEF_CONFIG_SYNC_INTERVAL_MS);
            if (tmpSyncInvMs >= VAL_MIN_CONFIG_SYNC_INTERVAL_MS) {
                this.metaConfigSyncInvlMs = tmpSyncInvMs;
            }
        }
        // read configure sync wast alarm ms
        tmpValue = this.props.get(KEY_META_CONFIG_SYNC_WAST_ALARM_MS);
        if (StringUtils.isNotBlank(tmpValue)) {
            this.metaConfigWastAlarmMs = NumberUtils.toLong(
                    tmpValue.trim(), VAL_DEF_META_CONFIG_SYNC_WAST_ALARM_MS);
        }
    }
getStringFromContext

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