public static <T1,T2>Map<T1,T2> synchronizedMap(){
  return Collections.synchronizedMap(new HashMap<T1,T2>());
}

public static < T1 , T2 > Map < T1 , T2 > synchronizedMap ( ) { return Collections . synchronizedMap ( new HashMap < T1 , T2 > ( ) ) ; }
creates a new synchronized map .
