protected WOComponent pageWithContextTaskEntity(String task, String entityName, WOSession session) {
protected WOComponent pageWithContextTaskEntity(String task, String entityName) {
        protected WOComponent pageWithContextTaskEntity(String task, String entityName, WOSession session) {            D2WModel.defaultModel().checkRules();            EOEntity eoentity = (entityName == null ? null : EOModelGroup.defaultGroup().entityNamed(entityName));            if (eoentity == null && entityName != null && !entityName.equals("")                && !entityName.equals("*all*"))                throw new IllegalArgumentException("Could not find entity named " + entityName);            d2wContext().setTask(task);            d2wContext().setEntity(eoentity);            WOComponent wocomponent = WOApplication.application().pageWithName(d2wContext().pageName(), session.context());            if (wocomponent instanceof D2WComponent)                ((D2WComponent) wocomponent).setLocalContext(d2wContext());            return wocomponent;        }