/// <summary>
    /// Locates the in sitecore explorer.
    /// </summary>
    /// <param name="site">The site.</param>
    /// <param name="renderingName">The name.</param>
    private void LocateInSitecoreExplorer(Site site, string renderingName)
    {
      Site.RequestCompleted completed = delegate(string response)
      {
        var parts = response.Split('|');
        if (parts.Length != 2)
        {
          AppHost.MessageBox(response, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
          return;
        }

        var itemUri = new ItemUri(new DatabaseUri(site, new DatabaseName(parts[0])), new ItemId(new Guid(parts[1])));

        AppHost.CurrentContentTree.Activate();
        AppHost.CurrentContentTree.Locate(itemUri);
      };

      site.Execute("XmlLayouts.GetRenderingItemUri", completed, renderingName);
    }