code: private AttributeValue[] manageReadAttrinbute(final String[] real_names,
  	    final Vector wanted_attr, final Vector wanted_w_attr) throws DevFailed {
  	// Call the always_executed_hook method before
  	always_executed_hook();
  
  	// Read the hardware for readable attribute
  	if (wanted_attr.size() != 0) {
  	    read_attr_hardware(wanted_attr);
  	}
  
  	// Set attr value (for readable attribute)
  	for (int i = 0; i < wanted_attr.size(); i++) {
  	    final int idx = ((Integer) wanted_attr.elementAt(i)).intValue();
  	    read_attr(dev_attr.get_attr_by_ind(idx));
  	}
  	// Set attr value for writable attribute
  	for (int i = 0; i < wanted_w_attr.size(); i++) {
  	    final int idx = ((Integer) wanted_w_attr.elementAt(i)).intValue();
  	    final AttrWriteType w_type = dev_attr.get_attr_by_ind(idx).get_writable();
  	    if (w_type == AttrWriteType.READ_WITH_WRITE || w_type == AttrWriteType.WRITE) {
  		dev_attr.get_attr_by_ind(idx).set_value();
  	    }
  	}
  
  	// Allocate memory for the AttributeValue structures and fill it
  	return buildAttributeValue(real_names);
      }
docs: =========================================================================