private HttpHandler createRole() {
        return new HttpHandler() {

            @Override
            public void handle(HttpExchange he) throws IOException {
                he.getResponseHeaders().add("Access-Control-Allow-Origin", "*");
                String path = he.getRequestURI().getPath();
                int lastIndexOf = path.lastIndexOf("/");
                
                String message = "";
                Scanner scanner = new Scanner(he.getRequestBody());
                while (scanner.hasNextLine())
                {
                    message += scanner.nextLine();
                }
                he.sendResponseHeaders(200, 0);
                try (OutputStream responseBody = he.getResponseBody()){
                    String json = new Gson().toJson(facade.addRoleFromGson(message, lastIndexOf + 1));
                    System.out.println(json);
                    responseBody.write(("Postet: " + json).getBytes());
                }
            }
        };
    }