private void afterQueryProcess(Statement statement, Connection connection, ResultSet result) {
        try {
            if (result != null) {
                result.close();
                result = null;
            }
        } catch (SQLException ex) {

        }

        try {
            if (statement != null) {
                statement.close();
                statement = null;
            }
        } catch (SQLException ex) {

        }

        try {
            if (connection != null) {
                if (!(connection.isClosed()))
                    connection.close();
                connection = null;
            }
        } catch (SQLException ex) {

        }
    }