/// <summary>
 /// crea un istanza del server in base ai parametri.
 /// </summary>
 /// <returns>The server instance.</returns>
 public ServerInstance getServerInstance()
 {
     if (this.instance == null)
     {
         XDocument doc = XDocument.Load(serverConfigFile);
         // clumsy and ugly ... I know, fix later ...
         instance = new ServerInstance(doc, this.mode);
         return(instance);
     }
     else
     {
         return(instance);
     }
 }
        /// <summary>
        /// crea un istanza del server in base ai parametri. 
        /// </summary>
        /// <returns>The server instance.</returns>
        public ServerInstance getServerInstance()
        {

            if (this.instance == null){
                XDocument doc =  XDocument.Load(serverConfigFile);
                // clumsy and ugly ... I know, fix later ... 
                instance = new ServerInstance(doc, this.mode);
                return instance; 
            }else{
                return instance;
            }
        }