NSDictionary otherConnectionDictionary = otherModel.connectionDictionary();
if (otherConnectionDictionary != null && ObjectUtils.equals(newConnectionDictionary.objectForKey("adaptorName"), otherConnectionDictionary.objectForKey("adaptorName"))) {
boolean valuesThatMatterMatch = true;
for (int keyNum = 0; valuesThatMatterMatch && keyNum < keysThatMatter.length; keyNum ++) {
String thisValue = (String)newConnectionDictionary.objectForKey(keysThatMatter[keyNum]);
String otherValue = (String)otherConnectionDictionary.objectForKey(keysThatMatter[keyNum]);
valuesThatMatterMatch = ERXStringUtilities.stringEqualsString(thisValue, otherValue);
}
if (valuesThatMatterMatch && !newConnectionDictionary.equals(otherConnectionDictionary)) {
if (!isPrototypeModel(model) && !isPrototypeModel(otherModel)) {
String message = "The connection dictionaries for " + model.name() + " and " + otherModel.name() + " have the same URL and username, but the connection dictionaries are not equal. Check your connection dictionaries carefully! This problem is often caused by jdbc2Info not matching between the two. One fix for this is to set " + model.name() + ".removeJdbc2Info=true and " + otherModel.name() + ".removeJdbc2Info=true in your Properties file. (" + model.name() + "=" + newConnectionDictionary + "; and " + otherModel.name() + "=" + otherConnectionDictionary + ").";