A java implementation of the Identity Map design pattern