private ConsumeModel GetConsumeModel() { WebSiteConfig webSiteConfig = ConfigFileService.WebConfig; if (consumeModel == null) { lock (lockObj) { if (consumeModel == null) { consumeModel = new ConsumeModel(); if (consumeModel.predEngine == null) { consumeModel.loadModel(webSiteConfig.MachineLearning.SpamModelPath); } } return(consumeModel); } } else { return(consumeModel); } }