@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;

            Pool pool = (Pool) o;

            if (name != null ? !name.equals(pool.name) : pool.name != null) return false;
            if (type != pool.type) return false;

            return true;
        }