code: public static TopologyDef parseFile(String inputFile, boolean dumpYaml, boolean processIncludes,
                                          String propertiesFile, boolean envSub) throws IOException {
          Yaml yaml = yaml();
          FileInputStream in = new FileInputStream(inputFile);
          // TODO process properties, etc.
          TopologyDef topology = loadYaml(yaml, in, propertiesFile, envSub);
          in.close();
          if(dumpYaml){
              dumpYaml(topology, yaml);
          }
          if(processIncludes) {
              return processIncludes(yaml, topology, propertiesFile, envSub);
          } else {
              return topology;
          }
      }
docs: TODO refactor input stream processing (see parseResource() method).