class XPluginImp implements Plugin {

    CloudConfigServiceZkImp configServiceZkImp;
    CloudDiscoveryServiceZkImp discoveryServiceZkImp;

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

        if (Utils.isEmpty(cloudProps.getServer())) {
            return;
        }

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

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

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

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

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

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