if(cat.isDebugEnabled()) cat.debug("stage:" + stage + ", currentStage:" + currentStage + ", context:" + contextID + ", lastID:" + lastID);   if(stage != currentStage || lastID == null || !lastID.equals(contextID)) { if(cat.isDebugEnabled()) cat.debug("did reset"); if(displayCountDict != null) displayCountDict.removeAllObjects(); stage = currentStage; lastID = contextID; }  if(displayCountDict == null) { displayCountDict = new NSMutableDictionary(ERXConstant.ZeroInteger, key); } else if(displayCountDict.objectForKey(key) == null) { displayCountDict.setObjectForKey(ERXConstant.ZeroInteger, key); } else { count = ((Integer)displayCountDict.objectForKey(key)).intValue() + 1; displayCountDict.setObjectForKey(ERXConstant.integerForInt(count), key); }
if(displayCountDict().objectForKey(key) == null) { displayCountDict().setObjectForKey(ERXConstant.integerForInt(-1), key); } int count = ((Integer)displayCountDict().objectForKey(key)).intValue() + 1; displayCountDict().setObjectForKey(ERXConstant.integerForInt(count), key);
    public void resetDict(int currentStage, String contextID) {	int count = 0;	String key = keyName();        if(cat.isDebugEnabled())            cat.debug("stage:" + stage + ", currentStage:" + currentStage + ", context:" + contextID + ", lastID:" + lastID);		if(stage != currentStage || lastID == null || !lastID.equals(contextID)) {            if(cat.isDebugEnabled())                cat.debug("did reset");	    if(displayCountDict != null)		displayCountDict.removeAllObjects();	    stage = currentStage;	    lastID = contextID;	}		if(displayCountDict == null) {	    displayCountDict = new NSMutableDictionary(ERXConstant.ZeroInteger, key);	} else if(displayCountDict.objectForKey(key) == null) {	    displayCountDict.setObjectForKey(ERXConstant.ZeroInteger, key);	} else {	    count = ((Integer)displayCountDict.objectForKey(key)).intValue() + 1;	    displayCountDict.setObjectForKey(ERXConstant.integerForInt(count), key);	}    }