public HttpServer createHttpServer() throws IOException {
HttpServer httpServer = HttpServer.create(new InetSocketAddress(8069), 0);
// create and register our handler
httpServer.createContext("/bucketname/standard-key.txt",new HttpHandler() {
public void handle(HttpExchange exchange) throws IOException {
byte[] response = "loaded=true".getBytes("UTF-8");
// RFC 2616 says HTTP headers are case-insensitive - but the
// Amazon S3 client will crash if ETag has a different
// capitalisation. And this HttpServer normalises the names