class UploadService extends ComponentSupport {

  @VisibleForTesting
  String createSearchTerm(final Collection<String> createdPaths) {
    if (createdPaths.isEmpty()) {
      return null;
    }

    String prefix = Iterables.getFirst(createdPaths, null);

    for (String path : createdPaths) {
      prefix = longestPrefix(prefix, path);
    }

    return prefix;
  }

  @Inject public  UploadService(final RepositoryManager repositoryManager,
                       final UploadManager uploadManager);

}