Wrap first class.forName with try-catch so that second class.forName is attempted