public void PreDispose()
 {
     this.__ExcelObserver = null;
     this.ConfigMatter    = null;
     if (this.PMMLMatter != null)
     {
         this.PMMLMatter.Dispose();
     }
     this.PMMLMatter = null;
     if (this.InputMatter != null)
     {
         this.InputMatter.Dispose();
     }
     this.InputMatter = null;
     if (this.OutputMatter != null)
     {
         this.OutputMatter.Dispose();
     }
     this.OutputMatter = null;
     //C#
     GC.Collect();
     //C#
     GC.WaitForPendingFinalizers();
     //C#
     GC.Collect();
     //C#
     GC.WaitForPendingFinalizers();
 }
 public void Dispose()
 //throws com.WDataSci.WDS.WDSException, Exception
 {
     this.PreDispose();
     this.ConfigMatter = null;
     /* C# >>> */
     if (this.__JniPMML != null && this.__JniPMML.isHandle(this.__Handle))
     {
         try {
             this.__JniPMML.__Java.CallVoidMethod("ItemDispose", "(I)V", new List <object> {
                 this.__Handle
             });
             this.__JniPMML.Remove(this);
         } catch (Exception e) {
         }
     }
     /* <<< C# */
 }