code: public void cache(Identity oid, Object obj)
      {
          if ((obj != null))
          {
              SoftReference ref = new SoftReference(obj);
              objectTable.put(oid, ref);
          }
      }
docs: Makes object persistent to the Objectcache.
  I'm using soft-references to allow gc reclaim unused objects
  even if they are still cached.