{
RepositoryContentMetadata existingRCMD = new RepositoryContentMetadata(this.localContentManager.getOfficialContentMetadata());
RepositoryItemMetadata newRIMD = this.clusteringHandler.addDeploymentContent(vfsPath, contentIS);
RepositoryRootMetadata existingRRMD = existingRCMD.getRepositoryRootMetadata(newRIMD.getRootName());
boolean exists = existingRRMD != null && existingRRMD.getItemMetadata(newRIMD.getRelativePathElements()) != null;
VirtualFile root = getCachedVirtualFile(namedURIMap.get(newRIMD.getRootName()));
VirtualFile contentVF = root.getChild(newRIMD.getRelativePath());
try
{
// Add the new virtual file to the cache
repositoryName = addVirtualFileCache(contentVF);