@RequestMapping( value = "/create/{id}", method = RequestMethod.POST, consumes = {MediaType.APPLICATION_FORM_URLENCODED_VALUE, MediaType.APPLICATION_JSON_VALUE}) public @ResponseBody Mailbox addMailbox( @RequestBody Mailbox mailbox, @PathVariable("id") long address_id) { try { mailboxBo.create(mailbox, address_id); } catch (Exception e) { throw new InternalErrorException(); } return mailbox; }