code: private void checkIfUseDb(final DeviceProxy deviceProxy, final String origin) throws DevFailed {
          if (!deviceProxy.url.use_db) {
              Except.throw_non_db_exception("Api_NonDatabaseDevice", "Device " + name(deviceProxy)
                  + " do not use database", "DeviceProxy(" + name(deviceProxy) + ")." + origin);
          }
      }
docs: ==========================================================================