code: public Object getByIdOrFail(final UUID id) throws ObjectToIdMappingException {
          Optional<Object> object = getById(id);
          if (!object.isPresent()) {
              throw new ObjectToIdMappingException(format(
                      "An object with the id [%s] was expected to be known but it was not.  %s", id.toString(),
                      SYNCRONISM_LOST));
          }
          return object.get();
      }
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.
  @throws ObjectToIdMappingException
  When no object with the given id is registered.