function handleFileAddToWorkingSet(commandData) {
        // This is a legacy deprecated command that
        //  will use the new command and resolve with a document
        //  as the legacy command would only support.
        DeprecationWarning.deprecationWarning("Commands.FILE_ADD_TO_WORKING_SET has been deprecated.  Use Commands.CMD_ADD_TO_WORKINGSET_AND_OPEN instead.");
        var result = new $.Deferred();

        handleFileAddToWorkingSetAndOpen(commandData)
            .done(function (file) {
                // if we succeeded with an open file
                //  then we need to resolve that to a document.
                //  getOpenDocumentForPath will return null if there isn't a
                //  supporting document for that file (e.g. an image)
                var doc = DocumentManager.getOpenDocumentForPath(file.fullPath);
                result.resolve(doc);
            })
            .fail(function (err) {
                result.reject(err);
            });

        return result.promise();
    }
@deprecated
Opens the given file, makes it the current document, AND adds it to the workingset
@param {!PaneCommandData} commandData - record with the following properties:
  fullPath: File to open;
  index: optional index to position in workingset (defaults to last);
  silent: optional flag to suppress error messages;
  forceRedraw: flag to force the working set view redraw;
  paneId: optional PaneId (defaults to active pane)
@return {$.Promise} a jQuery promise that will be resolved with @type {File}