DefaultHttpService service = new DefaultHttpService(
procBuilder, new DefaultConnectionReuseStrategy(),
new DefaultHttpResponseFactory(), null, null,
paramsBuilder.buildParams());
BasicCounter counter = new BasicCounter();
ServerSocket serversocket = new ServerSocket(8080);
thread = new WorkerThread(service, serversocket.accept(), paramsBuilder.buildParams(), counter);
thread.start();
thread.isClosed();
thread.shutdown();