Changed Datetype for the key to WeakHashMap