String hostName = (String) anInst.valueForKey("hostName");
Integer port = (Integer) anInst.valueForKey("port");
MInstance anMInstance = aConfig.instanceWithHostnameAndPort(hostName, port);
// if I can't find the instance, I might be updating the port - in that case, look under the oldport number.
if (anMInstance == null) {
port = (Integer) anInst.valueForKey("oldport");
anMInstance = aConfig.instanceWithHostnameAndPort(hostName, port);
}
if (anMInstance == null) {
element = new NSDictionary(new Object[]{Boolean.FALSE, _hostName + ": Instance " +hostName+"-"+port+ " not found; UPDATE failed"}, errorKeys);
instanceArrayResponse.addObject(element);