class DomainTopology {

  public static DomainTopology parseDomainTopologyYaml(String topologyYaml, Consumer<List<String>> errorReporter) {
    final DomainTopology domainTopology = parseDomainTopologyYaml(topologyYaml);
    if (domainTopology == null || domainTopology.getDomainValid()) {
      return domainTopology;
    } else {
      errorReporter.accept(domainTopology.validationErrors);
      return null;
    }
  }

  @SuppressWarnings("unused") // Used by parser public  DomainTopology();
  public  DomainTopology(WlsDomainConfig domain);

}