standalone

How about having (something like) this as part of this example/template? 

It illustrates a "standalone" usage scenario, incl. respective needed Maven configuration, as well as a proposed convenience helper class (which you may want to rewrite better - I'll take no offence at all).

I came up with this as a preparation for what I want to do in https://github.com/vorburger/eclipse-typescript-xtext/issues/11 some other time.