private string DetermineDocumentType(string projectId, string imageFile, string classifierPath)
        {
            Console.WriteLine("Determine Document Type is processing ...");
            if (engine == null)
            {
                engine = LoadEngine(projectId);
            }
            if (processor == null)
            {
                processor = engine.CreateFlexiCaptureProcessor();
                processor.AddClassificationTreeFile(classifierPath);
                Console.WriteLine("Classifier template is added ...");
            }
            else
            {
                processor.ResetProcessing();
                Console.WriteLine("Processor is reseted");
            }
            processor.AddImageFile(@imageFile);
            var result = processor.ClassifyNextPage();

            if (result != null && result.PageType == PageTypeEnum.PT_MeetsDocumentDefinition)
            {
                var names = result.GetClassNames();
                Console.WriteLine("Determine Document Type is completed");
                return(names.Item(0));
            }


            Console.WriteLine("Determine Document Type is not completed");
            return("");
        }