code: public void generate() throws IOException, TemplateException {
          File configFile = new File(baseDir, "config.yaml");
          AggregatorModel aggregator = mapper.readValue(configFile, AggregatorModel.class);
  
          File project = new File(baseDir, "project");
          mkdir(project);
  
          // Generate the individual client modules.
          Template pom = freemarker.getPomTemplate();
          for (ModuleModel module : aggregator.getModules()) {
              File dir = new File(project, "aws-scala-sdk-" + module.getName());
              mkdir(dir);
  
              Writer writer = new FileWriter(new File(dir, "pom.xml"));
              try {
                  pom.process(module, writer);
              } finally {
                  writer.close();
              }
          }
  
          // Generate the aggregator module.
          Template agg = freemarker.getAggregatorTemplate();
  
          Writer writer = new FileWriter(new File(project, "pom.xml"));
          try {
              agg.process(aggregator, writer);
          } finally {
              writer.close();
          }
      }
docs: Generates a multi-module maven project structure under
  {@code $baseDir/project} from the configuration in
  {@code $baseDir/config.yaml}.