/// <summary> /// /// </summary> /// <param name="request"></param> /// <returns></returns> public DocsPaVO.Modelli.ModelResponse ProcessModel(DocsPaVO.Modelli.ModelRequest request) { DocsPaVO.Modelli.ModelResponse response = null; try { IModelProcessor processor = this.CreateInstance(request.ModelType); //return processor.ProcessModel(request); response = processor.ProcessModel(request); } catch (Exception ex) { response = new DocsPaVO.Modelli.ModelResponse { DocumentId = request.DocumentId, Exception = ex.Message, }; } return(response); }