code: public static DocFile createFileForOutput(Configuration configuration, DocPath path) {
          return DocFileFactory.getFactory(configuration).createFileForOutput(path);
      }
docs: Create a DocFile for a file that will be opened for writing.