<BUG>Wait wait = new Wait();try (Disconnectable tcp = ninio.create(TcpSocketServer.builder().bind(new Address(Address.ANY, port)).connecting(new WaitListenConnecting(wait)).listening(HttpListening.builder().with(new SerialExecutor(ReadmeWithAnnotatedHttpService.class)).with(a.build()).build()))) {wait.waitFor();</BUG><CONTEXT>for (Class<?> clazz : ReadmeWithAnnotatedHttpService.class.getDeclaredClasses()) {if (Arrays.asList(clazz.getInterfaces()).contains(HttpController.class)) {a.register((Class<? extends HttpController>) clazz);}}<extra_id_0>System.out.println("http://" + new Address(Address.LOCALHOST, port) + "/a/echo?message=helloworld");</CONTEXT>
try (Listener tcp = ninio.create(TcpSocketServer.builder().bind(new Address(Address.ANY, port)))) {tcp.listen(HttpListening.builder().with(new SerialExecutor(ReadmeWithAnnotatedHttpService.class)).with(a.build()).build());