code: public DevState[] extractDevStateArray() throws DevFailed {
  	manageExceptions("extractDevStateArray()");
  	try {
  	    if (isArray()) {
  		return DevVarStateArrayHelper.extract(attrval.value);
  	    } else {
  		// It is used for state attribute
  		return new DevState[] { DevStateHelper.extract(attrval.value) };
  	    }
  	} 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: ===========================================