java tpl, create entity for POST and PUT even if @body is empty