public void Initialise(string contentPath)
        {
            var startTime = DateTime.Now;
            Logger.Info("Startup: " + startTime);

            SearchService = new SearchService();

            
            contentPath = Path.Combine(contentPath, "App_Data", "Moriyama", "content");
            var contentPathMapper = new ContentPathMapper(contentPath);

            var cache = ConfigurationManager.AppSettings["Moriyama.Runtime.Cached"];
            Logger.Info("Starting with cache " + cache + " (" + ByteSize.FromBytes(Process.GetCurrentProcess().WorkingSet64).MegaBytes + " memory MB)");

            if (string.IsNullOrEmpty(cache) || Convert.ToBoolean(cache) == false)
                ContentService = new CacheLessRuntimeContentService(contentPathMapper, SearchService);
            else
                ContentService = new LuceneQueryingContentService(contentPathMapper, SearchService);

            ContentService.RefreshUrls();

            var indexOnStart = ConfigurationManager.AppSettings["Moriyama.Runtime.Search"];

            if (!string.IsNullOrEmpty(indexOnStart) && Convert.ToBoolean(indexOnStart))
                SearchService.IndexAll(ContentService);

            Logger.Info("Startup complete " + "(" + ByteSize.FromBytes(Process.GetCurrentProcess().WorkingSet64).MegaBytes + " memory MB)");
            Logger.Info("Startup time " + DateTime.Now.Subtract(startTime).TotalSeconds);
        }
        public void Init(string path, UmbracoHelper helper)
        {
            Logger.Info(string.Format("Init {0} with {1}", GetType().Name, path));

            path = Path.Combine(path, "App_Data", "Moriyama", "content");

            var contentPathMapper = new ContentPathMapper(path);

            var parsers = new List<IUmbracoContentParser>
            {
                new NaviHideUmbracoContentParser(), 
                new NullValueUmbracoContentParser(),
                new LocalLinkUmbracoContentParser(helper)
            };

            UmbracoContentSerialiser = new UmbracoContentSerialiser(helper, parsers);
            Mapper.CreateMap<IPublishedContent, RuntimeContentModel>();
        }