code: public FlowLoader createFlowLoader(final File projectDir) throws ProjectManagerException {
      if (checkForValidProjectYamlFile(projectDir)) {
        return new DirectoryYamlFlowLoader(this.props);
      } else {
        return new DirectoryFlowLoader(this.props);
      }
    }
docs: Creates flow loader based on project YAML file inside project directory.
  
  @param projectDir the project directory
  @return the flow loader