}
responseListToAddTo.put(sender, response);
} else if (responseObject != null) {
// null responses should just be ignored, all other responses should trigger an exception
Class<?> responseClass = responseObject.getClass();
log.tracef("Unexpected response object type from %s: %s", sender, responseClass);
throw new CacheException(String.format("Unexpected response object type from %s: %s", sender, responseClass));
}
} else if (wasSuspected) {
if (!ignoreLeavers) {
throw new SuspectException("Suspected member: " + sender, sender);