begining of exceptions in JavaGenerator