Convert JavaExceptions into plain exceptions.
Remove createAlternateImpl.