docs: @Override
    public void validateUpdate(final ResourcePool newPool) {
      super.validateUpdate(newPool);
  
      SizedResourcePool sizedPool = (SizedResourcePool)newPool;
      // Ensure unit type has not changed
      if (!this.getUnit().getClass().equals(sizedPool.getUnit().getClass())) {
        throw new IllegalArgumentException("ResourcePool for " + sizedPool.getType() + " with ResourceUnit '"
            + sizedPool.getUnit() + "' can not replace '" + this.getUnit() + "'");
      }
  
      // Ensure replacement has positive space
      if (sizedPool.getSize() <= 0) {
        throw new IllegalArgumentException("ResourcePool for " + sizedPool.getType()
            + " must specify space greater than 0");
      }
    }