Implementation of RegisterType  and Resolve