/**
 * \brief Replaces the SimulationObject with the same reference as the
 * provided DataObject with a new SimulationObject created from the
 * provided DataObject.
 *
 * \param newObject The DataObject to create the replacing object from.
 * \param initiator The id of the initiator of the update.
 */
void UpdatableSOAdapter::replaceObject(DataObject& newObject, int64_t initiator)
{
     Error e;
     e << "Can't replace '" << newObject.identifier() << "' in object '" << ref() << "'";
     throw e;
}
/**
 * \brief Adds the SimulationObject created from the provided
 * DataObject to this object.
 *
 * \param toAdd The DataObject to create the new SimulationObject from.
 * \param initiator The id of the initiator of the update.
 */
void UpdatableSOAdapter::addObject(DataObject& toAdd, int64_t initiator)
{
     Error e;
     e << "Can't add '" << toAdd.identifier() << "' to object '" << ref() << "'";
     throw e;
}