@RequestMapping("foo")
@ResponseBody
public String foo(@RequestParam(required =false) final Optional name){
return"name: "+(name ==null?"null": name.get());
}