if (cycle.isRewinding() && TapestryUtils.isValid((AbstractPage) cycle.getPage())) {
if (TapestryUtils.isRewinding(cycle, this) && TapestryUtils.isValid(this)) {
    protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) {        super.renderComponent(writer, cycle);        if (cycle.isRewinding() && TapestryUtils.isValid((AbstractPage) cycle.getPage())) {            onFormSubmit(cycle);        }    }