code: @CheckForNull
      public DockerSlaveTemplate getTemplate(Label label) {
          List<DockerSlaveTemplate> labelTemplates = getTemplates(label);
          if (!labelTemplates.isEmpty()) {
              return labelTemplates.get(0);
          }
  
          return null;
      }
docs: Gets first {@link DockerSlaveTemplate} that has the matching {@link Label}.