I want change data after `@RestController` class in Spring

I need to change the fields data based on the specified language.

example:

enum:

```
public enum Gender {
    WOMAN, MAN, OTHER
}

```

the controller:

```
@RequestMapping(value = "/get/{id}", method = RequestMethod.GET)
public User get(@PathVariable Long id) throws Exception {

    log.debug("Entering get( id={} )", id);

    User user = null;

    try {
        user = UserService.get(id);

    } catch (Exception e) {
        log.debug("Error occurred in get().", e);

        throw e;
    }

    return user;
}

```

this output:

```
{
    fisrtName: 'john',
    lastName: 'doe',
    gender: 'man'
}

```

change to this output:

```
{
    fisrtName: 'john',
    lastName: 'doe',
    gender: 'homme'
}

```