for (int j = 0; j < cids.length; j++) {
int cid = cids[j];
if (!contextIndex.containsKey(cid)) {
Context c = new Context(cid, this);
contextIndex.put(cid, c);
if (c.activate()) {
todo.add(c);
}
if (log.isTraceEnabled()) {
log.trace("Added context " + cid);
}