class RecordJsonMapper implements Function<Record, JsonObject> {

    @Override
    public JsonObject apply(final Record record) {
        return service.visit(new JsonVisitor(singer, service, jsonBuilderFactory), record);
    }

}