How To Handle Memory Leak In Java