code: public DevState updateState() throws DevFailed {
          xlogger.entry();
          Object getState;
          if (getStateMethod != null) {
              try {
                  getState = getStateMethod.invoke(businessObject);
                  if (getState != null) {
                      if (getState instanceof DeviceState) {
                          state = ((DeviceState) getState).getDevState();
                      } else {
                          state = (DevState) getState;
                      }
                  }
              } 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(e.getCause());
                  }
              }
          }
          //	if (!attributeAlarm.isEmpty()) {
          //	    state = DevState.ALARM;
          //	}
          xlogger.exit();
          return state;
      }
docs: get the state from the device
  
  @return the state
  @throws DevFailed