if(!name.equals("collections.xconf")) { CollectionConfiguration config = getConfiguration(); trigger = config.getTrigger(Trigger.REMOVE_EVENT);
if (!docname.equals(COLLECTION_CONFIG_FILE)) { if(triggersEnabled) { CollectionConfiguration config = getConfiguration(broker); if (config != null) trigger = config.getTrigger(Trigger.REMOVE_DOCUMENT_EVENT); } } else configuration = null; String path = getName() + '/' + docname; DocumentImpl doc = getDocument(path); if (doc == null) return; if (trigger != null && triggersEnabled) { trigger.prepare(Trigger.REMOVE_DOCUMENT_EVENT, broker, docname, doc);
	synchronized public void removeDocument(String name) {		Trigger trigger = null;		if(!name.equals("collections.xconf")) {			CollectionConfiguration config = getConfiguration();			trigger = config.getTrigger(Trigger.REMOVE_EVENT);		}		documents.remove(name);	}