/// <summary>
        /// Gets navigation url.
        /// <param name="schemaName">Object schema name.</param>
        /// <param name="recordId">Object identifier.</param>
        /// </summary>
        /// <returns>Navigation url.</returns>
        protected string GetUrl(string schemaName, string recordId)
        {
            IUrlGenerator urlGenerator = GetUrlGenerator();
            string        url          = Guid.TryParse(recordId, out Guid id)
                                ? urlGenerator.GetUrl(schemaName, id)
                                : urlGenerator.GetDefaultUrl();

            return(url);
        }