List<ReplicationState> sessionIds = new ArrayList();
//using set to avoid dups
HashSet timerIdsSet = new HashSet();
//iterate over servlet timer replicas
BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
Iterator it = replicatedServletTimersCache.values();
while(it.hasNext()) {
ReplicationState nextState
= (ReplicationState)it.next();
RollingUpgradeUtil.filterOwnershipOfReplicas(owningInstanceName, nextState, timerIdsSet);
}