private FunctionMenu getRemoteFunctionMenu() {
   FunctionMenu fm = masterServicePrx.getFunctionMenu();
   for (ServiceInfo si : fm.serviceInfos.values()) {
     // 转成正确的代理类
     si.server = ServiceUtil.getServicePrx(si);
   }
   return fm;
 }
  private void initIceFunction(String path) throws Exception {
    if (masterServicePrx != null) {
      return;
    }
    byte[] bytes = zkService.getData(path, true, null);
    if (bytes == null) {
      return;
    }
    FunctionAddress fa = bytes2FAddress(bytes);
    masterServicePrx = context.getIceServer().getMasterServicePrx(fa);

    // 这里调用ice的接口,获取服务
    functionMenu = getRemoteFunctionMenu();
    ServiceUtil.functionMenuPrint("IceConnect", functionMenu);
  }