@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((actions == null) ? 0 : actions.hashCode());
   result = prime * result + ((resource == null) ? 0 : resource.hashCode());
   result = prime * result + ((subjects == null) ? 0 : subjects.hashCode());
   return result;
 }
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   RuleTarget other = (RuleTarget) obj;
   if (actions == null) {
     if (other.actions != null) return false;
   } else if (!actions.equals(other.actions)) return false;
   if (resource == null) {
     if (other.resource != null) return false;
   } else if (!resource.equals(other.resource)) return false;
   if (subjects == null) {
     if (other.subjects != null) return false;
   } else if (!subjects.equals(other.subjects)) return false;
   return true;
 }