Fixing the type cast exception form Concurrent Map to HAshMap