HHH-9107 throw WrongClassException if attempting to load incorrect
subclass from 2lc