regression - isQuoted doesn't give true because assert's condition is never a plain string (i.e. the one with quotes on both ends)
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/Common.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/Common.xpt
index 15aa6d5..5484759 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/Common.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/Common.xpt
@@ -84,6 +84,7 @@
 
 // Provides handy single point to override generation of assert statements
 // TODO refactor this Common.xpt into different flavours - like CommonCodeStyle (nls, assert), CommonSnippets(pkgStmt, setCharset, getSaveOptions) and so on
+// TODO condition.xpandToCharList()->count('"') / 2 gives better guess about number of nonNLS to generate 
 «DEFINE _assert(condition : String) FOR OclAny-»
-assert «condition»;«IF condition.isQuoted('\"')»«EXPAND nonNLS»«ENDIF»
+assert «condition»;«IF condition.indexOf('\"') > 0»«EXPAND nonNLS»«ENDIF»
 «ENDDEFINE»
\ No newline at end of file