What I'd do in this case is to set the application instance into the scope of the WTKXSerializer, so that script blocks can see the 'application' reference.
The iTunes Search demo (org.apache.pivot.demos.itunes.SearchDemo) does exactly this. You can also take a look at that class for an example.
