@POST
  @Path("/update")
  // TODO: modify data consumed later
  public Response update(
      @FormParam("value") String value,
      @FormParam("label") String label,
      @FormParam("url") String url,
      @FormParam("text") String text) {
    boolean flag = false;
    for (CustomlinksResourceModel.Link link : customlinks)
      if (link.getLinkNum() == Integer.valueOf(value)) {
        link.setLabel(label);
        link.setUrl(url);
        link.setText(text);
        flag = true;
      }

    CacheControl cc = new CacheControl();
    cc.setNoCache(true);
    if (flag) return Response.ok(customlinks).cacheControl(cc).build();

    return Response.status(204).cacheControl(cc).build();
  }