private void checkConfiguration(Txn transaction, DBBroker broker, String docName) throws EXistException {
private void checkConfiguration(Txn transaction, DBBroker broker, String docName) throws EXistException, PermissionDeniedException {
    private void checkConfiguration(Txn transaction, DBBroker broker, String docName) throws EXistException {//    	Is it a collection configuration file ?        if (!getName().startsWith(CollectionConfigurationManager.CONFIG_COLLECTION))        	return;        if (!docName.endsWith(CollectionConfiguration.COLLECTION_CONFIG_SUFFIX))        	return;        //Allow just one configuration document per collection        //TODO : do not throw the exception if a system property allows several ones -pb    	for(Iterator i = iterator(broker); i.hasNext(); ) {	        DocumentImpl confDoc = (DocumentImpl) i.next();	        String currentConfDocName = confDoc.getFileName();	        if(currentConfDocName != null && !currentConfDocName.equals(docName)) {	        	throw new EXistException("Could not store configuration '" + docName + "': A configuration document with a different name ("	        			+ currentConfDocName + ") already exists in this collection (" + getName() + ")");	        }        }    }