Folder's events trigger Agents that are supposed to handle only events from Document
I have an agent that will monitor file creation, but somehow when I create a new folder, the agent is also triggered.
Following is the enableEventListening() method which I only register the Document class.
Collection c = getSession().getClassObjectCollection();
ClassObject doc = (ClassObject) c.getItems(Document.CLASS_NAME);
Do you know why?