protected static TranslationItem CreateTranslationItem([NotNull] string originalText, [NotNull] string translation, [NotNull] ContentReference parentLink, [NotNull] LanguageSelector languageSelector)
        {
            // Create the base item
            TranslationItem translationItem = CmsContext.CreateContent <TranslationItem>(
                originalText, parentLink);

            // Set the additional properties for this type.
            translationItem.OriginalText = originalText;
            translationItem.Translation  = translation;

            return(translationItem);
        }
        protected static PageData CreateStartPage(
            [NotNull] string pageName,
            [NotNull] string pdfHeader,
            [NotNull] string pdfFooter,
            [NotNull] ContentReference parentLink)
        {
            // Create the base item
            PageData startPage = CmsContext.CreateContent <PageData>(pageName, parentLink);

            // Set the additional properties for this type.
            startPage.Property["PdfHeader"] = new PropertyString(pdfHeader);
            startPage.Property["PdfFooter"] = new PropertyString(pdfFooter);

            return(startPage);
        }
        protected static OutputItem CreateOutputItem(
            [NotNull] string pageName,
            [NotNull] string textToUse,
            [NotNull] string textNotToUse,
            [NotNull] ContentReference parentLink)
        {
            // Create the base item
            OutputItem outputItem = CmsContext.CreateContent <OutputItem>(pageName, parentLink);

            // Set the additional properties for this type.
            outputItem.TextToUseInOutput    = textToUse;
            outputItem.TextNotToUseInOutput = textNotToUse;

            return(outputItem);
        }