if (resolveSettings == null) {
resolveSettings = settingsFactory.create();
userResolverChain = createUserResolverChain();
resolveSettings.addResolver(userResolverChain);
resolveSettings.setDefaultResolver(USER_RESOLVER_CHAIN_NAME);
<BUG>}
userResolverChain.setCachePolicy(resolutionStrategy.getCachePolicy());</BUG>
replaceResolvers(dependencyResolvers, userResolverChain);
return resolveSettings;
}

if (resolveSettings == null) {
resolveSettings = settingsFactory.create();
userResolverChain = createUserResolverChain();
resolveSettings.addResolver(userResolverChain);
resolveSettings.setDefaultResolver(USER_RESOLVER_CHAIN_NAME);
}
((IvySettingsAware) moduleDescriptorCache).setSettings(resolveSettings);
userResolverChain.setCachePolicy(resolutionStrategy.getCachePolicy());
replaceResolvers(dependencyResolvers, userResolverChain);
return resolveSettings;
}
