Now, a ClassNotFoundException is thrown. It would provide a better UX if some nice error was thrown instead.