public synchronized void addConfiguration(DBBroker broker, Collection collection, String config)
public void addConfiguration(DBBroker broker, Collection collection, String config)
    public synchronized void addConfiguration(DBBroker broker, Collection collection, String config)     throws CollectionConfigurationException {    	try {			String path = CONFIG_COLLECTION + collection.getName();			Collection confCol = broker.getOrCreateCollection(path);			if(confCol == null)				throw new CollectionConfigurationException("Failed to create config collection: " + path);			broker.saveCollection(confCol);			IndexInfo info = confCol.validate(broker, "collection.xconf", config);			confCol.store(broker, info, config, false);			broker.sync(Sync.MAJOR_SYNC);		} catch (PermissionDeniedException e) {			throw new CollectionConfigurationException("Failed to store collection configuration: " + e.getMessage(), e);		} catch (CollectionConfigurationException e) {			throw new CollectionConfigurationException("Failed to store collection configuration: " + e.getMessage(), e);		} catch (EXistException e) {			throw new CollectionConfigurationException("Failed to store collection configuration: " + e.getMessage(), e);		} catch (TriggerException e) {			throw new CollectionConfigurationException("Failed to store collection configuration: " + e.getMessage(), e);		} catch (SAXException e) {			throw new CollectionConfigurationException("Failed to store collection configuration: " + e.getMessage(), e);		} catch (LockException e) {			throw new CollectionConfigurationException("Failed to store collection configuration: " + e.getMessage(), e);		}    }