ByteArrayOutputStream newIndexBuffer = new ByteArrayOutputStream();
Map<String, String> config = new HashMap<String, String>();
config.put(BundleIndexer.REPOSITORY_NAME, this.getName());
config.put(BundleIndexer.ROOT_URL, localIndex.getCanonicalFile().toURI().toURL().toString());
indexer.index(Collections.singleton(newFile.getCanonicalFile()), newIndexBuffer, null);
// Merge into main index
File tempIndex = File.createTempFile("repository", ".xml");
FileOutputStream tempIndexOutput = new FileOutputStream(tempIndex);
MergeContentFilter merger = new MergeContentFilter();