public static void main(String[] args) throws IOException {
    Config.Builder b = new Config.Builder();
    b.resource(Chat.class)
        .resource("./webapps")
        // for debugging inside IntelJ
        .resource("./wasync-samples/chat/src/main/resources")
        .port(8080)
        .host("127.0.0.1")
        .build();
    Nettosphere s = new Nettosphere.Builder().config(b.build()).build();
    s.start();
    String a = "";

    logger.info("NettoSphere Chat Server started on port {}", 8080);
    logger.info("Type quit to stop the server");
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    while (!(a.equals("quit"))) {
      a = br.readLine();
    }
    System.exit(-1);
  }