public void addKeyValueComment(String keyName,String value){
  int keyIndex;
  if ((keyIndex=findKeyCommentIndex(keyName)) < 0) {
    keyValComments.add("! " + keyName + ": "+ value+ "\n");
    return;
  }
  log.warn("Key " + keyName + " already exists in key/value set.  Overriding previous value!");
  keyValComments.set(keyIndex,"! " + keyName + ": "+ value+ "\n");
}

public void addKeyValueComment ( String keyName , String value ) { int keyIndex ; if ( ( keyIndex = findKeyCommentIndex ( keyName ) ) < 0 ) { keyValComments . add ( "! " + keyName + ": " + value + "\n" ) ; return ; } log . warn ( "Key " + keyName + " already exists in key/value set.  Overriding previous value!" ) ; keyValComments . set ( keyIndex , "! " + keyName + ": " + value + "\n" ) ; }
updates the internal key / value storage to reflect the parameters . if the key already exists , its value is updated based on the parameter . if the key does not exist , a new key / value pair comment is added to the key / value storage list .
