private void addTagToMap(Map<String,String> map,String key,String value){
  if (autocompletePresetItem != null && autocompletePresetItem.getKeyType(key) == PresetKeyType.MULTISELECT) {
    if (value.endsWith(String.valueOf(autocompletePresetItem.getDelimiter(key)))) {
      value=value.substring(0,value.length() - 1);
    }
  }
  map.put(key,value);
}

private void addTagToMap ( Map < String , String > map , String key , String value ) { if ( autocompletePresetItem != null && autocompletePresetItem . getKeyType ( key ) == PresetKeyType . MULTISELECT ) { if ( value . endsWith ( String . valueOf ( autocompletePresetItem . getDelimiter ( key ) ) ) ) { value = value . substring ( 0 , value . length ( ) - 1 ) ; } } map . put ( key , value ) ; }
added key - value to a map stripping training list separator
