Handling an exception that is thrown on pre Java 7 JVMs.