@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((fRI == null) ? 0 : fRI.hashCode());
   return result;
 }
 @Override
 public boolean equals(final Object obj) {
   if (this == obj) return true;
   if (!(obj instanceof UnrequiredResourceInstanceMatch)) { // this should be infrequent
     if (obj == null) {
       return false;
     }
     if (!(obj instanceof IPatternMatch)) {
       return false;
     }
     IPatternMatch otherSig = (IPatternMatch) obj;
     if (!specification().equals(otherSig.specification())) return false;
     return Arrays.deepEquals(toArray(), otherSig.toArray());
   }
   UnrequiredResourceInstanceMatch other = (UnrequiredResourceInstanceMatch) obj;
   if (fRI == null) {
     if (other.fRI != null) return false;
   } else if (!fRI.equals(other.fRI)) return false;
   return true;
 }