CustomModelClassFactory.findClass() calls Parser.assertVersionExists(version) without wrapping it in isAllowUnknownVersions(). This causes custom mappings for unsupported (by HAPI) versions (whether or not they are supported by the Factory) to fail.
IMHO, I don't think CustomModelClassFactory should make this call at all:
- The factory is constructed using a package or array of classnames that should (and in my testing do) explicitly constrain the supported versions.
- If the package includes 2.7, it should work... if it doesn't include 2.7, it should (and does) fail.
- Conversely, if the Factory does not have models for 2.2, the fact that HAPI supports that version is irrelevant.
removed check for unknown version in CustomModelClassFactories