docs: @Override
    public void validateUpdate(ResourcePool newPool) {
      // Replacement must be of the same ResourceType
      if (!this.getType().equals(newPool.getType())) {
        throw new IllegalArgumentException("ResourceType " + newPool.getType() + " can not replace " + this.getType());
      }
      // Replacement must have the same persistence
      if (this.isPersistent() != newPool.isPersistent()) {
        throw new IllegalArgumentException("ResourcePool for " + newPool.getType() + " with isPersistent="
            + newPool.isPersistent() + " can not replace isPersistent=" + this.isPersistent());
      }
    }