code: public String updateStatus(final DeviceState state) throws DevFailed {
          xlogger.entry();
          if (getStatusMethod != null) {
              try {
                  status = (String) getStatusMethod.invoke(businessObject);
              } catch (final IllegalArgumentException e) {
                  throw DevFailedUtils.newDevFailed(e);
              } catch (final IllegalAccessException e) {
                  throw DevFailedUtils.newDevFailed(e);
              } catch (final InvocationTargetException e) {
                  if (e.getCause() instanceof DevFailed) {
                      throw (DevFailed) e.getCause();
                  } else {
                      throw DevFailedUtils.newDevFailed("INVOCATION_ERROR", ExceptionUtils.getStackTrace(e.getCause())
                              + " InvocationTargetException");
                  }
              }
          } else {
              if (status.isEmpty()) {
                  status = "The device is in " + state + " state.";
              }
          }
          StringBuilder statusAlarm = new StringBuilder();
          for (final String string : attributeAlarm.values()) {
              statusAlarm = statusAlarm.append(string);
          }
  
          return status + statusAlarm;
      }
docs: Get the status of the device
  
  @return the status
  @throws DevFailed