public String addPage() {
    id = (Long) request.getSession().getAttribute("SESSION_CONTENT_ADD_ID");
    if (id == null) {
      content = new Content();
    } else {
      content = this.contentManager.get(id);
    }
    content.setClick(0);
    content.setTop(0);
    content.setCreatedate(new Date());
    content.setState(2);

    this.contentManager.save(content);
    request.getSession().setAttribute("SESSION_CONTENT_ADD_ID", content.getId());
    List<ContentType> types = this.typeManager.findList();
    request.setAttribute("types", types);
    return "addPage";
  }