@Override
  public void doEditGuest(RenderRequest renderRequest, RenderResponse renderResponse)
      throws IOException, PortletException {

    if (renderRequest.getPreferences() == null) {
      super.doEdit(renderRequest, renderResponse);
    } else {
      renderRequest.setAttribute(WebKeys.PORTLET_STRUTS_ACTION, editGuestAction);

      include(renderRequest, renderResponse);
    }
  }
  @Override
  public void init(PortletConfig portletConfig) throws PortletException {
    super.init(portletConfig);

    aboutAction = getInitParameter("about-action");
    configAction = getInitParameter("config-action");
    editAction = getInitParameter("edit-action");
    editDefaultsAction = getInitParameter("edit-defaults-action");
    editGuestAction = getInitParameter("edit-guest-action");
    helpAction = getInitParameter("help-action");
    previewAction = getInitParameter("preview-action");
    printAction = getInitParameter("print-action");
    viewAction = getInitParameter("view-action");

    copyRequestParameters =
        GetterUtil.getBoolean(getInitParameter("copy-request-parameters"), true);

    _portletConfig = (PortletConfigImpl) portletConfig;
  }