Say I have a Java class like this:

```
package com.example;
public class PersonUtil {
    static class Person {
        LocalDate dob;
        String name;
        Person(LocalDate dob, String name) { this.dob = dob; this.name = name;}
    }

    public static Person person() {
        return new Person(LocalDate.now(), "bob");
    }
}

```

and then I have `common.feature` file like this:

```
@ignore
Feature:

Scenario:
    * def personUtil = Java.type('com.example.PersonUtil')

```

and then a `test.feature` file like this:

```
Feature: Create Person

Background:
  * def util = call read('common.feature')
  * print util.personUtil.person();

```

The problem is that the dob field in the feature files looks like the following structure:

```
{"dob": {"year":2019, 
    "month":"MAY", 
    "monthValue":5, 
    "dayOfMonth":1, 
    "leapYear":false, 
    "dayOfWeek":"WEDNESDAY", 
    "dayOfYear":121, 
    "era": "CE", 
    "chronology": {
        "id":"ISO", 
         "calendarType":"iso8601"
        }}, 
 "name":"bob"}

```

but I would like it to be using a DateFormatter so the output was

```
{"dob": "2019-05-1", "name":"bob"}

```

Is there a way to do this with the Karate without creating another DTO and doing the LocalDate formatting myself?