class ResponseMapper {

    public <T, R> ResponseEntity<?> ok(ResponseObject<T> response, Function<T, R> mapper) { //NOPMD short method name ok corresponds to status code
        return generateResponse(response, OK, mapper);
    }

}