if (caTokenRegistry.contains(new Integer(caid))) {
if (caTokenRegistry.containsKey(new Integer(caid))) {
    public synchronized void addCAToken(int caid, CAToken token) {        if (caTokenRegistry.contains(new Integer(caid))) {            caTokenRegistry.remove(new Integer(caid));            log.debug("Removed old CA token for CA: "+caid);        }        if (token != null) {            caTokenRegistry.put(new Integer(caid), token);                        log.debug("Added CA token for CA: "+caid);        }    }