protected override void ExecuteInner(ContentTreeContext context)
        {
            var itemTree = context.GetSelectedAsItemTree();

            if (itemTree.IsTemplate)
            {
                ExecuteInner(
                    new SitecoreTemplateBuilder(
                        new SitecoreDataService(context.GetSite().DataService),
                        new SitecoreItemBuilder(new SitecoreDataService(context.GetSite().DataService))).Build(itemTree.ItemUri));
            }
            else
            {
                ExecuteInner(new SitecoreItemBuilder(new SitecoreDataService(context.GetSite().DataService)).Build(itemTree.ItemUri));
            }
        }        
 protected override bool CanExecuteInner(ContentTreeContext context)
 {
     return context.OneItemSelected() && context.GetSelectedAsItemTree() != null;
 }