code: public static TopologyDef parseFile(String inputFile, boolean dumpYaml, boolean processIncludes,
      	String propertiesFile, boolean envSub) throws IOException {
     
          FileInputStream in = new FileInputStream(inputFile);
          TopologyDef topology = parseInputStream(in, dumpYaml, processIncludes, propertiesFile, envSub);
          in.close();
          
          return topology;
      }
docs: TODO refactor input stream processing (see parseResource() method).