Set<String> nonPersistentTimerIds = getNonPersistentApplicationTimerIds(false);
List<ServletTimer> timers = new ArrayList<ServletTimer>(persistentTimerIds.size() +
nonPersistentTimerIds.size());
for (String id : persistentTimerIds) {
ServletTimerImpl st = null;
try {
st = getSipSessionManager().findServletTimer(id, loadDependencies);
} catch (RemoteLockException e) {
throw new RemoteLockRuntimeException(e);
}
if (st != null) {
timers.add(st);
}
}
for (String id : nonPersistentTimerIds) {
ServletTimerImpl st = null;
st = findServletTimerLocally(id, loadDependencies);
if (st != null) {
timers.add(st);
}
}