class Main {

    public void mediaReader() {
        Routing routing = Routing.builder()
                                 .post("/create-record", Handler.create(Name.class, (req, res, name) -> {
                                     System.out.println("Name: " + name);
                                     res.status(Http.Status.CREATED_201)
                                        .send(name.toString());
                                 }))
                                 .build();

        // Create a media support that contains the defaults and our custom Name reader
        MediaContext mediaContext = MediaContext.builder()
                .addReader(NameReader.create())
                .build();

        startServer(routing, mediaContext);
    }

}