protected void renderCleanup(RenderRequest request)
{
PortletSession session = request.getPortletSession();
session.setAttribute(REDEPLOY_FLAG, "portlet was not redeployed");
FacesContext context = FacesContext.getCurrentInstance();
if (context != null) context.release();
session.removeAttribute(this.CURRENT_FACES_CONTEXT);
}
/**
* This method follows JSF Spec section 2.1.1. It renders the default view from a non-faces