public static void close(ResultSet res, Statement sta, Connection con) {
        if (res != null) {
            try {
                res.close();
            } catch (Exception ex){}
        }

        if (sta != null) {
            try {
                sta.close();
            } catch (Exception ex) {}
        }

        if (con != null) {
            try {
                con.close();
            } catch (Exception ex) {}
        }
    }