Use java.util.Collections.synchronizedMap on a Java HashMap.