code: public DbAttribute[] get_device_attribute_property(Database database, String deviceName, String[] attnames)
              throws DevFailed {
          if (!database.isAccess_checked()) checkAccess(database);
  
          DeviceData argIn = new DeviceData();
          DeviceData argOut;
          int mode = 2;
  
          try {
              //	value is an array
              argIn.insert(ApiUtil.toStringArray(deviceName, attnames));
              argOut = command_inout(database, "DbGetDeviceAttributeProperty2", argIn);
          } catch (DevFailed e) {
              if (e.errors[0].reason.equals("API_CommandNotFound")) {
                  //	Value is just one element
                  argOut = command_inout(database, "DbGetDeviceAttributeProperty", argIn);
                  mode = 1;
              } else
                  throw e;
          }
          return ApiUtil.toDbAttributeArray(argOut.extractStringArray(), mode);
      }
docs: ==========================================================================