Compile route before getName() to ensure same value is always returned. ...

Minor bug. The Route need to be compiled if want to avoid situation in which getName() returns a different value before and after the route is compiled.