DependencyResolver: Add sub-class validation