/// <summary>
 /// Constructs the URL for the specified <paramref name="path"/> using the <paramref name="valuesMediator"/>.
 /// </summary>
 /// <param name="path">The path segments tree.</param>
 /// <param name="valuesMediator">The route values mediator.</param>
 /// <returns>Returns the constructed URL or <c>null</c> if the URL cannot be constructed.</returns>
 protected virtual string ConstructUrl(FullPathSegment path, RouteValuesMediator valuesMediator)
 {
     return((string)path.GetUrlPart((s) => valuesMediator.ResolveValue(s)));
 }