return (obj == null ? null : new Wrapper(obj));
String s; if (obj == null) { s = "null"; } else { try { s = obj.toString(); } catch (Exception e) {  s = e.toString(); } } return s;
      public Object getKey(Object o) {        InstanceStats is = (InstanceStats) o;        Object obj = is.get();        // wrap the object in case of concurrent mods!        // (e.g. ArrayList equality)         return (obj == null ? null : new Wrapper(obj));      }