private boolean lookupPermitted(boolean childLookup, ControllerMethod cm) { ChildrenOf anno = (ChildrenOf) cm.anno; if (childLookup) { return anno.allowChildLookups(); } return true; }