class ConsoleResourceDelegateImpl implements ConsoleResourceDelegate {
    private static final Logger LOG = LoggerFactory.getLogger(ConsoleResourceDelegateImpl.class);

    @Autowired
    private ConfigResource configResource;

    @Override
    public RuleEntity getRemoteRuleEntity(String group, String serviceId) {<FILL_FUNCTION_BODY>}

    @Override
    public boolean updateRemoteRuleEntity(String group, String serviceId, RuleEntity ruleEntity) {
        String subscriptionServiceId = StringUtils.isEmpty(serviceId) ? group : serviceId;

        try {
            return configResource.updateRemoteRuleEntity(group, subscriptionServiceId, ruleEntity);
        } catch (Exception e) {
            throw new DiscoveryException("Update remote RuleEntity failed, group=" + group + ", serviceId=" + subscriptionServiceId, e);
        }
    }
}

        String subscriptionServiceId = StringUtils.isEmpty(serviceId) ? group : serviceId;

        RuleEntity ruleEntity = null;
        try {
            ruleEntity = configResource.getRemoteRuleEntity(group, subscriptionServiceId);
        } catch (Exception e) {
            ruleEntity = new RuleEntity();

            LOG.warn("Get remote RuleEntity failed, group={}, serviceId={}", group, subscriptionServiceId, e);
        }

        return ruleEntity;
    
<no_super_class>