Remvoe API exception from SnippetGenerator to be able to use it in GWT code