private void handleFavicon() throws IOException {
        if (this.pingResponse == null)
            createPingResponse();

        File favicon = new File("server-icon.png");
        if (favicon.exists()) {
            BufferedImage image = ImageIO.read(favicon);

            if (image.getWidth() != 64 || image.getHeight() != 64) {
                LOGGER.warning("Found a server-icon.png but it has an illegal size! Please make sure your server-icon is 64x64");
                return;
            }

            ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
            ImageIO.write(image, "png", outputStream);

            this.pingResponse.put("favicon", "data:image/png;base64," + DatatypeConverter.printBase64Binary(outputStream.toByteArray()));
        }
    }