code: public void registerObject(final Object object, final UUID id) {
          objectToId.put(object, id);
          idToObject.put(id, object);
      }
docs: Registers an object in this model identified by a pre existing id.
  
  @param object
  The object to register.
  @param id
  The id by which this object is identified.