@RequestMapping(value = "/{doctype}", method = RequestMethod.PUT) @ResponseBody public DOMSource putItems(@RequestBody Collection content, @PathVariable String doctype) { RestfulModel model = m_loginService.getModel(); RestfulResponse response = new RestfulResponse(RESPONSE_TRANSACTIONTICKET); content.setType(model.getType(doctype)); response.setContent(model.setTrollingObjects(content).toString()); return response.getBody(); }