private Map<String, RepoPackage> buildNameToPackageMap(List<? extends RepoPackage> packages) {
    try {
      return doBuildNameToPackageMap(packages);
    }
    catch (Exception e) {
      PackageManagementService service = myPackageManagementService;
      LOG.error("Failure in " + getClass().getName() +
                ", service: " + (service != null ? service.getClass().getName() : null), e);
      return Collections.emptyMap();
    }
  }
private Map<String, RepoPackage> buildNameToPackageMap(List<? extends RepoPackage> packages)