public static NextPageDelegate instance=new _D2WPickActionDelegate ();
public WOComponent nextPage(WOComponent sender) {
WOComponent target = D2WEmbeddedComponent.findTarget(sender);
WOComponent nextPage = null;
if (target.hasBinding("branchDelegate")) {
ERDBranchDelegate delegate = (ERDBranchDelegate)target.valueForBinding("branchDelegate");
if (delegate == null) {
throw new RuntimeException("Null branch delegate. Sender: " + sender + " Target: " + target);
} else {
nextPage = delegate.nextPage(sender);
}
} else {
if (target.hasBinding("selectedObjects") && target.canSetValueForBinding("selectedObjects")) {
target.setValueForBinding(sender.valueForKey("selectedObjects"),"selectedObjects");
}