Use a compile time sneaky throw hack.

Fixes maven compilation for dependants.