code: @SuppressWarnings("unchecked")
      <T> T deduplicate(T object) {
          if (deduplicateMap.containsKey(object) == false) {
              deduplicateMap.put(object, object);
          }
          return (T) deduplicateMap.get(object);
      }
docs: Deduplicates an object instance.
  
  @param <T> the generic type
  @param object  the object to deduplicate
  @return the deduplicated object