code: public String status(final DeviceProxy deviceProxy, final boolean src) throws DevFailed {
  
          build_connection(deviceProxy);
  
          if (deviceProxy.url.protocol == TANGO) {
              String status = "Unknown";
              final int retries = deviceProxy.transparent_reconnection ? 2 : 1;
              boolean done = false;
              for (int i = 0; i < retries && !done; i++) {
              try {
                  //noinspection PointlessBooleanExpression
                  if (src == ApiDefs.FROM_ATTR) {
                      status = deviceProxy.device.status();
                  } else {
                      final DeviceData argout = deviceProxy.command_inout("Status");
                      status = argout.extractString();
                  }
                  done = true;
              } catch (final Exception e) {
                  manageExceptionReconnection(deviceProxy, retries, i, e, this.getClass()
                      + ".status");
              }
              }
              return status;
          } else {
              return command_inout(deviceProxy, "DevStatus").extractString();
          }
      }
docs: ===========================================================