private void captureDifferentString(String oldString,String newString,Map<String,String> map,String appName){
  Reject.ifNull(appName);
  Reject.ifNull(map);
  if (oldString == null ? newString != null : !oldString.equals(newString)) {
    map.put(appName,newString);
  }
}

private void captureDifferentString ( String oldString , String newString , Map < String , String > map , String appName ) { Reject . ifNull ( appName ) ; Reject . ifNull ( map ) ; if ( oldString == null ? newString != null : ! oldString . equals ( newString ) ) { map . put ( appName , newString ) ; } }
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 .
