@Override
    public boolean equals(Object object) {

        if (!(object instanceof KeyedId)) {
            return false;
        }
        KeyedId other = (KeyedId) object;
        return !((this.name == null && other.name != null)
                || (this.name != null && !this.name.equals(other.name))
                || (this.uid == null && other.uid != null)
                || (this.uid != null && !this.uid.equals(other.uid)));
    }