public void afterPropertiesSet() throws Exception {
// String ip = config.currentNode().getIp();
Long port = configClientService.currentNode().getPort();
if (endpoint instanceof RmiCommunicationEndpoint) {
RmiCommunicationEndpoint rmiEndpoint = (RmiCommunicationEndpoint) endpoint;
// rmiEndpoint.setHost(ip);
rmiEndpoint.setPort(port.intValue());
}
if (endpoint instanceof DubboCommunicationEndpoint) {
DubboCommunicationEndpoint dubboEndpoint = (DubboCommunicationEndpoint) endpoint;
dubboEndpoint.setPort(port.intValue());