d2wcontext.setDynamicPage(name);
if (d2wcontext.task() == null || d2wcontext.entity() == null) {
String reason = null;
if (d2wcontext.task() == null && d2wcontext.entity() == null) {
reason = "task and entity is null, it seems that one model, maybe ERDirectToWeb d2w.d2wmodel is not loaded!";
} else if (d2wcontext.task() == null) {
reason = "task is null, it seems that one model, maybe ERDirectToWeb d2w.d2wmodel is not loaded!";
} else if (d2wcontext.entity() == null) {
reason = "entity is null, it seems that one model, maybe ERDirectToWeb d2w.d2wmodel is not loaded!";
}
throw new IllegalStateException("Couldn't find the dynamic page named " + name + " in your DirectToWeb model."+