code: public Optional<Object> getById(final UUID id) {
          return Optional.ofNullable(idToObject.get(id));
      }
docs: Returns the object that is identified by an id.
  
  @param id
  The id of the object that should be returned.
  @return The object if one is registered by this id or an empty {@link Optional} if not.