throw new IllegalStateException(new StringBuilder().append('<').append(getClass().getName()).append("> : Missing page name.").toString());
}
if(nextPageName != null) {
invokedElement = WOApplication.application().pageWithName(nextPageName, context);
} else {
throw new WOPageNotFoundException(new StringBuilder().append('<').append(getClass().getName()).append("> : cannot find page.").toString());
}
}
} else {
invokedElement = new WONoContentElement();
}