private void runTest() {

        Thread t = new Thread() {

            @Override
            public void run() {

                RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(10 * 1000).build();
                HttpClient client = HttpClientBuilder.create().setDefaultRequestConfig(requestConfig).build();

                HttpGet request = new HttpGet("http://gw2eventer.sourceforge.net/event_data");

                HttpResponse response;

                String line = "";
                String out = "";

                String version = "";

                while (!this.isInterrupted()) {

                    try {

                        response = client.execute(request);

                        if (response.getStatusLine().toString().contains("200")) {

                            BufferedReader rd = new BufferedReader(new InputStreamReader(
                                    response.getEntity().getContent(), Charset.forName("UTF-8")));

                            line = "";
                            out = "";

                            while ((line = rd.readLine()) != null) {

                                out = out + line;
                            }

                            JSONParser parser = new JSONParser();

                            Object obj;

                            try {

                                obj = parser.parse(out);

                                JSONArray array = (JSONArray) obj;

                                JSONObject obj2 = (JSONObject) array.get(0);
                                version = (String) obj2.get("version");

                                JSONArray data = (JSONArray) obj2.get("data");
                                obj2 = (JSONObject) data.get(0);

                                //System.out.println(data.hashCode());
                                JSONArray events = (JSONArray) obj2.get("events");
                                JSONArray playdata = (JSONArray) obj2.get("playdata");
                                JSONArray coords = (JSONArray) obj2.get("coords");

                                for (int i = 0; i < events.size(); i++) {

                                    obj2 = (JSONObject) events.get(i);

                                    String id = (String) obj2.get("id");
                                    JSONArray data2 = (JSONArray) obj2.get("data");

                                    //System.out.println(id);
                                    for (int j = 0; j < data2.size(); j++) {
                                        //System.out.println((String) data2.get(j));
                                    }
                                }

                                this.interrupt();
                            } catch (ParseException ex) {

                                Logger.getLogger(ApiManager.class.getName()).log(
                                        Level.SEVERE, null, ex);
                            }

                            request.releaseConnection();
                            //this.interrupt();
                        } else {
                            try {
                                request.releaseConnection();
                                Thread.sleep(20000);
                            } catch (InterruptedException ex) {
                                Logger.getLogger(EventAllReader.class.getName()).log(Level.SEVERE, null, ex);
                            }
                        }
                    } catch (IOException | IllegalStateException ex) {
                        try {
                            Logger.getLogger(EventReader.class.getName()).log(
                                    Level.SEVERE, null, ex);

                            request.releaseConnection();
                            Thread.sleep(20000);
                        } catch (InterruptedException ex1) {
                            Logger.getLogger(EventAllReader.class.getName()).log(Level.SEVERE, null, ex1);

                            this.interrupt();
                        }
                    }
                }
            }
        };

        t.start();
    }