Use generic Exception instead IOException in class loading to prevent any NullPointerException