This is a potential edge case fail. Current there is no way to reliably retrieve the ID of a non-persisted document. The AutoRoute uses setParent and setName (which allows renaming) as opposed to setId (which causes a fail because the ID is immutable).

This means that I cannot use `$metadata->getIdentifierValue`. Here I get the object hash of the parent and append the name of the autoroute.