@Override
    public ExecuteContext before(ExecuteContext context) throws Exception {
        final FlowControlConfig pluginConfig = PluginConfigManager.getPluginConfig(FlowControlConfig.class);
        FlowControlServiceMeta.getInstance().setDubboService(true);
        if (!pluginConfig.isUseCseRule() || !pluginConfig.isBaseSdk()) {
            return context;
        }
        FlowControlServiceMeta.getInstance().setVersion(com.alibaba.dubbo.common.utils.ConfigUtils.getProperty(
                CseConstants.KEY_DUBBO_VERSION,
                CseConstants.DEFAULT_DUBBO_VERSION));
        FlowControlServiceMeta.getInstance().setProject(com.alibaba.dubbo.common.utils.ConfigUtils.getProperty(
                CseConstants.KEY_DUBBO_KIE_PROJECT,
                CseConstants.DEFAULT_PROJECT));
        FlowControlServiceMeta.getInstance().setServiceName(com.alibaba.dubbo.common.utils.ConfigUtils.getProperty(
                CseConstants.KEY_DUBBO_SERVICE_NAME,
                CseConstants.DEFAULT_DUBBO_SERVICE_NAME));
        FlowControlServiceMeta.getInstance().setEnvironment(com.alibaba.dubbo.common.utils.ConfigUtils.getProperty(
                CseConstants.KEY_DUBBO_ENVIRONMENT,
                CseConstants.DEFAULT_DUBBO_ENVIRONMENT));
        FlowControlServiceMeta.getInstance().setApp(com.alibaba.dubbo.common.utils.ConfigUtils.getProperty(
                CseConstants.KEY_DUBBO_APP_NAME,
                CseConstants.DEFAULT_DUBBO_APP_NAME));
        FlowControlServiceMeta.getInstance().setCustomLabel(com.alibaba.dubbo.common.utils.ConfigUtils.getProperty(
                CseConstants.KEY_DUBBO_CUSTOM_LABEL,
                CseConstants.DEFAULT_CUSTOM_LABEL));
        FlowControlServiceMeta.getInstance().setCustomLabelValue(com.alibaba.dubbo.common.utils.ConfigUtils.getProperty(
                CseConstants.KEY_DUBBO_CUSTOM_LABEL_VALUE,
                CseConstants.DEFAULT_CUSTOM_LABEL_VALUE));
        return context;
    }
@Test
    public void testClose() throws Exception {
        final AbstractInterceptor interceptor = getInterceptor();
        interceptor.before(buildContext());
        assertNull(FlowControlServiceMeta.getInstance().getVersion());
    }