[DROOLS-253] explicitly use java.lang.Exception in templates generating java classes