Why not use code like in the `GroovyScriptFactory` ?

`if (...isModified()) {...getScriptAsString() }`

Or, maybe simply embed the `isModified()` call in the `getScriptAsString()` ?