Tip (I already fixed it locally):
Use entrySet() instead of keySet() if you 're going to do get(key) later to save performance.