springboot rest controller and value objects