public override object Deserialize(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer)
        {
            WfClientExportProcessDescriptorParams data = new WfClientExportProcessDescriptorParams();

            data.MatrixRoleAsPerson = dictionary.GetValue("matrixRoleAsPerson", false);

            return data;
        }
        public Stream ExportProcessDescriptors(WfClientExportProcessDescriptorParams exportParams, string[] processKeys)
        {
            OperationContext.Current.FillContextToOguServiceContext();

            WfExportProcessDescriptorParams serverExportParams = null;

            WfClientExportProcessDescriptorParamsConverter.Instance.ClientToServer(exportParams, ref serverExportParams);

            MemoryStream stream = new MemoryStream();

            WfProcessExporter.ExportProcessDescriptors(serverExportParams, stream, processKeys);

            stream.Seek(0, SeekOrigin.Begin);

            return stream;
        }