public Protocols.ToolkitResultProtocol CloseSubcase(Protocols.Support.CloseSubcaseSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session );
            FChoice.Toolkits.Clarify.Support.CloseSubcaseSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.Support.CloseSubcaseSetup(setupParam.SubcaseIDNum);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

            if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
            {
                setup.SubcaseIDNum = setupParam.SubcaseIDNum;
            }

            if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
            {
                setup.Status = setupParam.Status;
            }

            if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
            {
                setup.Resolution = setupParam.Resolution;
            }

            if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
            {
                setup.Summary = setupParam.Summary;
            }

            if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
            {
                setup.UserName = setupParam.UserName;
            }

            if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
            {
                setup.CloseDate = setupParam.CloseDate;
            }

            if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
            {
                setup.GenerateTimeBombs = setupParam.GenerateTimeBombs;
            }

            if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
            {
                foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);}
            }

            return new Protocols.ToolkitResultProtocol( toolkit.CloseSubcase(setup) );
        }
        public Protocols.ToolkitResultProtocol CloseSubcase(System.String subcaseIDNum)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.CloseSubcase(subcaseIDNum) );
        }