public void initRegistry() {
        registry = RegistryFactory.getRegistry(appContext);
        if (registry instanceof AbstractRegistry) {
            ((AbstractRegistry) registry).setNode(node);
        }
    }
@author Robert HG (254963746@qq.com) on 3/10/16.
lts-monitor/src/main/java/com/github/ltsopensource/monitor/MonitorAgent.java