More elegant solution if ask Spring MVC team to publicate `UriComponents.UriTemplateVariables` strategy.