class WebServer {

    private static final SimpleDateFormat SIMPLE_DATE_FORMAT =
            new SimpleDateFormat("yyyy-MM-dd | HH:mm:ss.SSS", Locale.getDefault());

    public static void main(String[] args) throws Exception {<FILL_FUNCTION_BODY>}
}

        if (args.length < 2) {
            System.err.println("Usage: WebServer <[hostname:]port> <yaml configuration file>");
            System.exit(1);
        }

        String host = "0.0.0.0";
        int port;
        int colonIndex = args[0].lastIndexOf(':');

        if (colonIndex < 0) {
            port = Integer.parseInt(args[0]);
        } else {
            port = Integer.parseInt(args[0].substring(colonIndex + 1));
            host = args[0].substring(0, colonIndex);
        }

        new BuildInfoMetrics().register(PrometheusRegistry.defaultRegistry);
        new JmxCollector(new File(args[1]), JmxCollector.Mode.STANDALONE)
                .register(PrometheusRegistry.defaultRegistry);

        HTTPServer httpServer = null;

        try {
            httpServer =
                    new HTTPServerFactory()
                            .createHTTPServer(
                                    InetAddress.getByName(host),
                                    port,
                                    PrometheusRegistry.defaultRegistry,
                                    new File(args[1]));

            System.out.println(
                    String.format(
                            "%s | %s | INFO | %s | %s",
                            SIMPLE_DATE_FORMAT.format(new Date()),
                            Thread.currentThread().getName(),
                            WebServer.class.getName(),
                            "Running"));

            Thread.currentThread().join();
        } catch (ConfigurationException e) {
            System.err.println("Configuration Exception : " + e.getMessage());
            System.exit(1);
        } catch (Throwable t) {
            System.err.println("Exception starting");
            t.printStackTrace();
        } finally {
            if (httpServer != null) {
                httpServer.close();
            }
        }
    
<no_super_class>