}
public ConflictManager getConflictManager(ModuleId moduleId) {
for (Iterator iter = _moduleSettings.keySet().iterator(); iter.hasNext();) {
ModuleIdMatcher midm = (ModuleIdMatcher)iter.next();
if (midm.matches(moduleId)) {
ModuleSettings ms = (ModuleSettings)_moduleSettings.get(midm);
if (ms.getConflictManager() != null) {
ConflictManager cm = getConflictManager(ms.getConflictManager());
if (cm == null) {
throw new IllegalStateException("ivy badly configured: unknown conflict manager "+ms.getConflictManager());