code: public static <K, V> String mapAsString(Map<K, V> map, String sepItem, String sepKeyval) {
  
          StringBuffer string = new StringBuffer(128);
          Iterator<Map.Entry<K, V>> it = map.entrySet().iterator();
          while (it.hasNext()) {
              Map.Entry<K, V> entry = it.next();
              string.append(entry.getKey());
              string.append(sepKeyval);
              string.append(entry.getValue());
              if (it.hasNext()) {
                  string.append(sepItem);
              }
          }
          return string.toString();
      }
docs: Returns a string representation for the given map using the given separators.<p>
  
  @param <K> type of map keys
  @param <V> type of map values
  @param map the map to write
  @param sepItem the item separator string
  @param sepKeyval the key-value pair separator string
  
  @return the string representation for the given map