code: @SuppressWarnings("unchecked")
  	public static Map createApproximateMap(Object map, int initialCapacity) {
  		if (map instanceof SortedMap) {
  			return new TreeMap(((SortedMap) map).comparator());
  		}
  		else {
  			return new LinkedHashMap(initialCapacity);
  		}
  	}
docs: Create the most approximate map for the given map.
  <p>Creates a TreeMap or linked Map for a SortedMap or Map, respectively.
  @param map the original Map object
  @param initialCapacity the initial capacity
  @return the new Map instance
  @see java.util.TreeMap
  @see java.util.LinkedHashMap