/**
   * Find the first BuildProject where the Reference matches the projectName.
   *
   * @param info information about build run
   * @return V1 representation of the project if match; otherwise - null.
   */
  private BuildProject getBuildProject(BuildInfo info) {
    BuildProjectFilter filter = new BuildProjectFilter();

    filter.references.add(info.getProjectName());
    Collection<BuildProject> projects = config.getV1Instance().get().buildProjects(filter);
    if (projects.isEmpty()) {
      return null;
    }
    return projects.iterator().next();
  }
 private static String getBuildName(final BuildInfo info) {
   return info.getProjectName() + " - build." + info.getBuildName();
 }