code: public Optional<UUID> getId(final Object object) {
          return Optional.ofNullable(objectToId.get(object));
      }
docs: Returns the id for an object.
  
  @param object
  The object thats id should be returned.
  @return The id of this object if it has an id assigned and an empty {@link Optional} if not.