Adding Java GenericSourceMap stubs to templates