protected void pingSingleJob(String location) throws Exception{
log.info("Start pinging {} ... ", location);
boolean waiting = true;
while(waiting){
Request req = builder.buildOtherRequest(new HttpGet(location));
req.withHeader("Accept", "application/json");
log.info("Ping method: {}", req.getRequest().getMethod());
log.info("Ping location: {}", req.getRequest().getURI());
req.getRequest().setHeader("Accept","application/json");
log.info("headers:");
for(Header h : req.getRequest().getAllHeaders()){