private StoreDuplicate findMatching(List<StoreDuplicate> sds, StoreDuplicate sd) {
   for (StoreDuplicate other : sds) if (other.getCondition() == sd.getCondition()) return other;
   return null;
 }
 private Attributes storeTo(StoreDuplicate sd, BasicAttributes attrs) {
   attrs.put("objectclass", "dcmStoreDuplicate");
   storeNotNull(attrs, "dcmStoreDuplicateCondition", sd.getCondition());
   storeNotNull(attrs, "dcmStoreDuplicateAction", sd.getAction());
   return attrs;
 }
 private List<ModificationItem> storeDiffs(
     StoreDuplicate prev, StoreDuplicate sd, ArrayList<ModificationItem> mods) {
   storeDiff(mods, "dcmRejectionAction", prev.getAction(), sd.getAction());
   return mods;
 }
 private String dnOf(StoreDuplicate sd, String aeDN) {
   StringBuilder sb = new StringBuilder();
   sb.append("dcmStoreDuplicateCondition=").append(sd.getCondition());
   sb.append(',').append(aeDN);
   return sb.toString();
 }