List replicasToRemove = new ArrayList();
ReplicationHealthChecker healthChecker = ReplicationHealthChecker.getInstance();
String correctBuddyReplicaName
= healthChecker.getReshapeReplicateToInstanceName(null, owningInstanceName, 0L);
//iterate over http replicas
BaseCache replicatedSipApplicationSessionsCache = getReplicatedSipApplicationSessions();
Iterator it = replicatedSipApplicationSessionsCache.values();
while(it.hasNext()) {
ReplicationState nextState
= (ReplicationState)it.next();
if(!RollingUpgradeUtil.filterOwnership(owningInstanceName, correctBuddyReplicaName, nextState, sessionIdsSet)) {
//we remove this entry if it is not on the correct replica partner - i.e. it is a zombie