Enumeration modelsEnum = model.modelGroup().models().objectEnumerator();
while (modelsEnum.hasMoreElements()) {
EOModel otherModel = (EOModel)modelsEnum.nextElement();
if (otherModel != model) {
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);