Removing A Detached Instance In Java