title: How can I replace the deprecated DocsList service?
body: <p>Since April 20, 2015 the DocsList service "service no longer functions". I have this function this function which used docsList service:</p>
  
  <pre><code>/**
   * Duplicates a Google Apps doc
   *
   * @return a new document with a given name from the orignal
   **/
  
  function createDuplicateDocument(sourceId, name) {
      var source = DocsList.getFileById(sourceId);
      var newFile = source.makeCopy(name);
  
    var targetFolder = DocsList.getFolderById(TARGET_FOLDER);
      newFile.addToFolder(targetFolder);
      return DocumentApp.openById(newFile.getId());
  }
  </code></pre>
  
  <p>How can I replace the <code>DocsList</code> service in this <code>createDuplicateDocument</code> function?</p>