XCOMMONS-424: ReflectionUtils.resolveType does not work with child type not directly extending the passed type
(cherry picked from commit 55312625a16bffbccd8728ae9badd0aa130133c3)