* @param response
*/
private void generateArchive(final String index, final HttpServletResponse response) {
IndexLocation location = indexer.getIndexes().get(index);
if (location instanceof LuceneSingleIndexLocation) {
LuceneSingleIndexLocation indexLocation = (LuceneSingleIndexLocation) location;
File indexDirectory = new File(indexLocation.getReopenFilename()).getParentFile();
File writeLock = null;
boolean weWroteTheWriteLock = false;
try {
indexLocation.checkLock();
if (indexDirectory.canWrite()) {
writeLock = new File(indexDirectory, "write.lock");
if (writeLock.createNewFile()) {
weWroteTheWriteLock = true;
} else {