code: public static void write(OutputStream out, List<ApplicationManifest> applicationManifests) {
          try (Writer writer = new OutputStreamWriter(out)) {
              YAML.dump(Collections.singletonMap("applications",
                  applicationManifests.stream()
                      .map(ApplicationManifestUtils::toYaml)
                      .collect(Collectors.toList())),
                  writer);
          } catch (IOException e) {
              throw Exceptions.propagate(e);
          }
      }
docs: Write {@link ApplicationManifest}s to an {@link OutputStream}
  
  @param out                  the {@link OutputStream} to write to
  @param applicationManifests the manifests to write