transact.abort(transaction);
throw new XMLDBException(ErrorCodes.NO_SUCH_COLLECTION, "Collection " + destinationPath + " not found");
}
if (newName == null)
{newName = collectionPath.lastSegment();}
broker.moveCollection(transaction, collection, destination, newName);
transact.commit(transaction);
} catch ( final EXistException e ) {
transact.abort(transaction);
e.printStackTrace();
throw new XMLDBException( ErrorCodes.VENDOR_ERROR,