Use ConcurrentHashMap rather than AtomicReferance of HashMap.