code: public DevState[] extractDevStateArray() throws DevFailed {
  		manageExceptions("extractDevStateArray()");
  		try {
  	    	if (use_union) {
                  // Check if scalar (State attribute itself !)
                  if (attributeValue_5.value.discriminator().value() == AttributeDataType._DEVICE_STATE) {
                      return new DevState[] { attributeValue_5.value.dev_state_att() };
                  } else {
                      return attributeValue_5.value.state_att_value();
                  }
  	    	} else {
  				return deviceAttribute_3.extractDevStateArray();
  	    	}
  		} catch (final org.omg.CORBA.BAD_PARAM e) {
  	    	Except
  		    	.throw_wrong_data_exception(
  			    	e.toString(),
  			    	"Exception catched : "
  				    	+ e.toString()
  				    	+ "\n"
  				    	+ "Maybe the attribute value has not been initialized",
  			    	"DeviceAttribute.extractDevStateArray()");
  		}
  		return new DevState[0];// never used
      }
docs: ===========================================