code: public String getStatus() throws DevFailed {
          MDC.setContextMap(contextMap);
          xlogger.entry();
  
          if (initImpl.isInitInProgress()) {
              // set status while init is in progress
              final String tmp = statusImpl.updateStatus(DeviceState.getDeviceState(getState()));
              if (tmp.equals(Constants.INIT_IN_PROGRESS)) {
                  status = tmp;
              } else {
                  status = Constants.INIT_IN_PROGRESS + System.getProperty("line.separator") + tmp;
              }
          } else if (isCorrectlyInit.get() && initImpl.isInitDoneCorrectly()) {
              // init finished
              status = statusImpl.updateStatus(DeviceState.getDeviceState(getState()));
          } else {
              // init failed
              status = statusImpl.getStatus();
          }
  
          return status;
      }
docs: Get status
  
  @return status
  @throws DevFailed