private String getRepositoryPathForDeletedResource(IResource resource, File contentSyncRoot) {
IFolder syncFolder = ProjectUtil.getSyncDirectory(resource.getProject());
IPath relativePath = resource.getFullPath().makeRelativeTo(syncFolder.getFullPath());
String absFilePath = new File(contentSyncRoot, relativePath.toOSString()).getAbsolutePath();
String filePath = serializationManager.getBaseResourcePath(absFilePath);
IPath osPath = Path.fromOSString(filePath);
String repositoryPath = serializationManager.getRepositoryPath(osPath.makeRelativeTo(syncFolder.getLocation())
.makeAbsolute().toPortableString());