private static ChapterModel CreateChapter(string bookId, BookChapter chapter, IList<TokenBase> tokens)
 {
     return new ChapterModel
         {
             BookID = bookId,
             Level = chapter.Level,
             Title = chapter.Title.Length > 1024 ? chapter.Title.Substring(0, 1024) : chapter.Title,
             TokenID = GetUIToken(chapter.TokenID, tokens),
             MinTokenID = GetMinToken(chapter.TokenID, tokens)
         };
 }
 private void ProcessTitleData(TokenIndex top, XElement xelement, int bookLevel)
 {
     var item = new BookChapter
                    {
                        Level = bookLevel,
                        Title = GetText(xelement),
                        TokenID = top.Index
                    };
     _chapters.Add(item);
 }