class CloudDiscoveryObserverEntity implements CloudDiscoveryHandler {
    static final Logger log = LoggerFactory.getLogger(CloudDiscoveryObserverEntity.class);

    public String group;
    public String service;
    public CloudDiscoveryHandler handler;

    public CloudDiscoveryObserverEntity(String group, String service, CloudDiscoveryHandler handler) {
        this.group = group;
        this.service = service;
        this.handler = handler;
    }

    @Override
    public void handle(Discovery discovery) {<FILL_FUNCTION_BODY>}
}

        try {
            //尝试增加发现代理
            DiscoveryUtils.tryLoadAgent(discovery, group, service);

            handler.handle(discovery);
        } catch (Throwable e) {
            log.warn(e.getMessage(), e);
        }
    
<no_super_class>