public static <K,V> SortedMap<K,V> decorate(SortedMap<K,V> map) {
        return new SynchronizedSortedMap<K,V>(map);
    }
public static < K , V > SortedMap < K , V > decorate ( SortedMap < K , V > map ) { return new SynchronizedSortedMap < K , V > ( map ) ; }
Factory method to create a synchronized map.

@param map  the map to decorate, must not be null
@throws IllegalArgumentException if map is null