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