class XPluginImp implements Plugin {
    CloudDiscoveryServiceJmdnsImpl discoveryServiceJmdnsImpl;

    @Override
    public void start(AppContext context) {<FILL_FUNCTION_BODY>}

    @Override
    public void stop() throws IOException {
        if (discoveryServiceJmdnsImpl != null) {
            discoveryServiceJmdnsImpl.close();
        }
    }
}

        CloudProps cloudProps = new CloudProps(context, "jmdns");

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

        if (cloudProps.getDiscoveryEnable()) {
            discoveryServiceJmdnsImpl = new CloudDiscoveryServiceJmdnsImpl(cloudProps);
            CloudManager.register(discoveryServiceJmdnsImpl);
        }
    
<no_super_class>