This does not look right. Why is deployment name ignored in equals method but used in hashcode?