public static ResultSet getResultSet(String query) throws SQLException, InterruptedException {
        String [] res=new String[2];
        Hashtable<String,String> hrs=new Hashtable<String, String>();
        //Connection con = null;
        Statement stmt = null;
        ResultSet rs = null;
         //grab a connection to the database
        try {

           
            if (con == null) {
                return null;
            }
            stmt = con.createStatement();
            // run the sql query to obtain a result set
            rs = stmt.executeQuery(query);
        } catch (SQLException sqlex) {
            sqlex.printStackTrace();
        } catch (RuntimeException rex) {
            rex.printStackTrace();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        
        return rs;     
    }