code: public DevState extractDevState() throws DevFailed {
  		manageExceptions("extractDevState");
  		if (use_union) {
  	    	// Check if saclar (State attribute itself !)
  	    	if (attributeValue_5.value.discriminator().value() == AttributeDataType._DEVICE_STATE) {
  			    return attributeValue_5.value.dev_state_att();
  	    	} else {
  			    return attributeValue_5.value.state_att_value()[0];
  	    	}
  		} else {
  	    	return deviceAttribute_3.extractDevState();
  		}
      }
docs: ===========================================