public Stream StartSessionGeneratorResults(string sessionid, string generatorid, string pagenum)
        {
            bool verbose  = JobQueryParameters.GetVerbose(false);
            int  page     = 0;
            int  sub_page = QueryParameters_GetPage(1);
            int  rpp      = QueryParameters_GetPageSize(1000);

            Int32.TryParse(pagenum, out page);

            Guid sessionGuid   = new Guid(sessionid);
            Guid generatorGuid = new Guid(generatorid);

            string json = "";

            List <Dictionary <string, object> > joblist = null;

            try
            {
                joblist = DataMarshal.GetGeneratorPage(generatorGuid, page, sub_page, rpp, verbose);
                json    = Newtonsoft.Json.JsonConvert.SerializeObject(joblist);
            }
            catch (Exception ex)
            {
                var msg = "Failed to get page: " + pagenum + ", UpdateException: "
                          + ex.Message + ", InnerException: " + ex.InnerException + ", StackTrace: " + ex.StackTrace.ToString();
                Debug.WriteLine(msg, "SessionResource.StartSessionGeneratorResults");
                var detail = new ErrorDetail(
                    ErrorDetail.Codes.DATAFORMAT_ERROR,
                    String.Format("Failed to get page")
                    );
                throw new WebFaultException <ErrorDetail>(detail, System.Net.HttpStatusCode.BadRequest);
            }

            return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(json)));
        }