D2WContext newContext=new D2WContext(session); newContext.setTask(task); newContext.setEntity(EOModelGroup.defaultGroup().entityNamed(entityName)); newContext.takeValueForKey(subtask, "subTask"); WOComponent result=WOApplication.application().pageWithName((String)newContext.valueForKey("pageName"),session.context()); ((D2WPage)result).setLocalContext(newContext); return result;
return ERD2WFactory.erFactory().pageForTaskSubTaskAndEntityNamed(task, subtask, entityName, session);
    public static WOComponent pageForTaskSubTaskAndEntityNamed(String task, String subtask, String entityName, WOSession session) {        D2WContext newContext=new D2WContext(session);        newContext.setTask(task);        newContext.setEntity(EOModelGroup.defaultGroup().entityNamed(entityName));        newContext.takeValueForKey(subtask, "subTask");        WOComponent result=WOApplication.application().pageWithName((String)newContext.valueForKey("pageName"),session.context());        ((D2WPage)result).setLocalContext(newContext);        return result;            }