class PrometheusGetHandler implements LightHttpHandler {


    static final Logger logger = LoggerFactory.getLogger(PrometheusGetHandler.class);
    static CollectorRegistry registry =  CollectorRegistry.defaultRegistry;

    public PrometheusGetHandler(){}

    @Override
    public void handleRequest(final HttpServerExchange exchange) throws Exception {<FILL_FUNCTION_BODY>}
}


        Writer writer = new StringWriter();
        try {
            TextFormat.write004(writer, registry.metricFamilySamples());
        } catch (IOException e) {
            logger.error("error on put result:", e);
        }
        exchange.getResponseSender().send(writer.toString());

    
<no_super_class>