code: private DeviceData checkZmqAddress(DeviceData deviceData, DeviceProxy deviceProxy) throws DevFailed{
          ZMQutils.zmqEventTrace("Inside checkZmqAddress()");
          DevVarLongStringArray lsa = deviceData.extractLongStringArray();
          for (int i=0 ; i<lsa.svalue.length ; i+=2) {
              String endpoint = lsa.svalue[i];
              if (isEndpointAvailable(endpoint)) {
                  lsa.svalue[0] = lsa.svalue[i];
                  lsa.svalue[1] = lsa.svalue[i+1];
                  ZMQutils.zmqEventTrace("return "  + lsa.svalue[i] + " - " + lsa.svalue[i+1]);
                  deviceData = new DeviceData();
                  deviceData.insert(lsa);
                  return deviceData;
              }
          }
          //  Not found check with host address
          return checkWithHostAddress(deviceData, deviceProxy);
      }
docs: ===============================================================