code: private void addSingleProjectToProjects(ProjectsDetails projectsDetails, String projectName, ProjectsDetails projects) {
          if (projectsDetails == null || projects == null || projectName == null) {
              logger.debug("projectsDetails {} , projects {} , projectName {}", projectsDetails, projectName, projects);
              return;
          }
          if (projectsDetails.getProjects().size() == 1) {
              String projectVersion = config.getRequest().getProjectVersion();
              AgentProjectInfo projectInfo = projectsDetails.getProjects().stream().findFirst().get();
              projectInfo.setCoordinates(new Coordinates(null, projectName, projectVersion));
              LinkedList<ViaComponents> viaComponents = projectsDetails.getProjectToViaComponents().get(projectInfo);
              projects.getProjectToViaComponents().put(projectInfo, viaComponents);
          } else {
              for (AgentProjectInfo projectInfo : projectsDetails.getProjects()) {
                  logger.debug("Project not added - {}", projectInfo);
              }
          }
      }
docs: /* --- Private methods ---