}
FlowState currentFlow = getAttachedFlowState();
int activityToGo = getActivityToGo();
try {
FlowActivity next = currentFlow.selectVisibleActivity(activityToGo);
String page = next.getPageName();
if (page!=null) {
getPage().getRequestCycle().activate(page);
} else {
updateComponents(findComponentsToUpdate(getUpdateComponents()));