class XPluginImp implements Plugin {
    CloudConfigServicePolarisImp cloudConfigServicePolarisImp;
    CloudDiscoveryServicePolarisImp cloudDiscoveryServicePolarisImp;

    @Override
    public void start(AppContext context) throws Throwable {
        CloudProps cloudProps = new CloudProps(context,"polaris");

        //1.登记配置服务
        if (cloudProps.getConfigEnable()) {
            cloudConfigServicePolarisImp = new CloudConfigServicePolarisImp(cloudProps);
            CloudManager.register(cloudConfigServicePolarisImp);

            //1.1.加载配置
            CloudClient.configLoad(cloudProps.getConfigLoad());
        }

        //2.登记发现服务
        if (cloudProps.getDiscoveryEnable()) {
            cloudDiscoveryServicePolarisImp = new CloudDiscoveryServicePolarisImp(cloudProps);
            CloudManager.register(cloudDiscoveryServicePolarisImp);
        }
    }

    @Override
    public void stop() throws Throwable {<FILL_FUNCTION_BODY>}
}

        if (cloudConfigServicePolarisImp != null) {
            cloudConfigServicePolarisImp.close();
        }

        if (cloudDiscoveryServicePolarisImp != null) {
            cloudDiscoveryServicePolarisImp.close();
        }
    
<no_super_class>