/**
         * Main function. It calls the method listenConsole in order to wait the Java process requests.
         * When the communication with the Java process ends, the MS Word application is closed.
         */
        static void Main(string[] args)
        {
            DocToXmlGenerator dtxg = new DocToXmlGenerator();

            dtxg.listenConsole();

            dtxg.closeWordApplication();
        }
        /**
         * Main function. It calls the method listenConsole in order to wait the Java process requests.
         * When the communication with the Java process ends, the MS Word application is closed.
         */
        static void Main(string[] args)
        {
            DocToXmlGenerator dtxg = new DocToXmlGenerator();

            dtxg.listenConsole();
        }