public Connection getConn()
    {
        try
        {
            if(this.conn == null || this.conn.isClosed() )
            {
                Class.forName("com.mysql.jdbc.Driver");
                
                this.conn = DriverManager.getConnection(
                        MessageFormat.format("jdbc:mysql://{0}:{1}/{2}?&useUnicode=true&characterEncoding=UTF-8", data.get("host"), data.get("port"), data.get("base")),
                        data.get("login"),
                        data.get("pass")
                );
            }
        } 
        catch (SQLException | ClassNotFoundException ex)
        {
            System.out.println(ex.toString());
        }

        return this.conn;
    }