public int Connect()
    {
        System.out.println(Adapter_to_config.getInstance().GetActiveConnect());

        if(ourInstance.log_reader != null && ourInstance.log_reader.IsConnected() && !conected_to.equals(Adapter_to_config.getInstance().GetActiveConnect()))
            Disconnect();

        if(ourInstance.log_reader == null || !ourInstance.log_reader.IsConnected())
            log_reader = new Log_reader(
                    Adapter_to_config.getInstance().GetActiveConnect().split("<div>")[1],
                    Adapter_to_config.getInstance().GetActiveConnect().split("<div>")[2],
                    Adapter_to_config.getInstance().GetActiveConnect().split("<div>")[3]
            );

        if(ourInstance.log_reader != null && ourInstance.log_reader.IsConnected())
            conected_to = Adapter_to_config.getInstance().GetActiveConnect();
        else
            conected_to = "";

        return 0;
    }