Added support for injecting classes using a given the protection domain.