final ModuleNode commandObjectModule = commandObjectNode.getModule();
if (commandObjectModule != null) {
if (commandObjectModule == controllerNode.getModule() ||
doesModulePathIncludeSubstring(commandObjectModule,
"grails-app" + File.separator + "controllers" + File.separator)) {
final ASTValidateableHelper h = new DefaultASTValidateableHelper();
h.injectValidateableCode(commandObjectNode, false);
argumentIsValidateable = true;
} else if (doesModulePathIncludeSubstring(commandObjectModule,
"grails-app" + File.separator + "domain" + File.separator)) {
argumentIsValidateable = true;
}