code: @Path("/{accountSid}")
      @Consumes(APPLICATION_FORM_URLENCODED)
      @POST
      @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
      public Response updateAccountAsXmlPost(@PathParam("accountSid") final String accountSid,
              final MultivaluedMap<String, String> data,
              @HeaderParam("Accept") String accept,
              @Context SecurityContext sec) {
          return updateAccount(accountSid, data, retrieveMediaType(accept), ContextUtil.convert(sec));
      }
docs: The {accountSid} could be the email address of the account we need to update. Later we check if this is SID or EMAIL