public static void SetResolver(IObjectResolver resolverToUse) { resolver = resolverToUse; resolverToUse.Initialize(); }