myCheckRules();
D2WContext d2wcontext = ERD2WContext.newContext(s.context().session());
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!";