private void captureDifferentSet(Set<String> oldSet,Set<String> newSet,Map<String,Set<String>> map,String appName){
  Reject.ifNull(appName);
  Reject.ifNull(map);
  if (oldSet == null && newSet == null) {
    map.put(appName,Collections.<String>emptySet());
  }
 else   if (newSet != null && !newSet.equals(oldSet)) {
    map.put(appName,newSet);
  }
}

private void captureDifferentSet ( Set < String > oldSet , Set < String > newSet , Map < String , Set < String > > map , String appName ) { Reject . ifNull ( appName ) ; Reject . ifNull ( map ) ; if ( oldSet == null && newSet == null ) { map . put ( appName , Collections . < String > emptySet ( ) ) ; } else if ( newSet != null && ! newSet . equals ( oldSet ) ) { map . put ( appName , newSet ) ; } }
adds entries to the passed in map , using the supplied appname as the key . the value is a new , empty set if both oldset and newset are null , or newset if the contents of oldset and newset differ . if the two sets are the same , no entries are added to the map .
