if(collection != null) collection.release(); if(destination != null) destination.release();
	public boolean moveCollection(User user, String collectionPath, String destinationPath, String newName) 	throws EXistException, PermissionDeniedException {	    DBBroker broker = null;		try {			broker = brokerPool.get(user);			// get source document			Collection collection = broker.getCollection(collectionPath);			if (collection == null)				throw new EXistException("Collection " + collectionPath						+ " not found");						// get destination collection			Collection destination = broker.getCollection(destinationPath);			if(destination == null)			    throw new EXistException("Destination collection " + destinationPath + " not found");			broker.moveCollection(collection, destination, newName);			documentCache.clear();			return true;        } catch (LockException e) {            throw new PermissionDeniedException(e.getMessage());        } finally {			brokerPool.release(broker);		}	}