code: @Override
      public DevState state() {
          MDC.setContextMap(contextMap);
          xlogger.entry();
          try {
              state = getState();
          } catch (final DevFailed e) {
              try {
                  stateImpl.stateMachine(DeviceState.UNKNOWN);
                  statusImpl.statusMachine(DevFailedUtils.toString(e), DeviceState.UNKNOWN);
                  state = DevState.UNKNOWN;
              } catch (final DevFailed e1) {
                  logger.debug(NOT_IMPORTANT_ERROR, e1);
              }
              logger.debug(NOT_IMPORTANT_ERROR, e);
          }
          return state;
      }
docs: get State
  
  @return state