converted exception from .groovy to .java to work around incompatible class change when running in jdk7
Merge pull request #16 from mlueders/jdk7-compatibility

update for jdk7 compatibility