code: function loadFile(node, method, params, msg) {
      var fileInfo = null;
      var p = openTheFile()
        .then(function(info){
          fileInfo = info;
          return syncTheFile(fileInfo, msg);
        })
        .then(function(){
          return processFileForWorkspace(fileInfo, method);
        })
        .then(function(workspaceObject){
          return setWorkspaceParams(method, params, workspaceObject);
        });
  
      return p;
    }
docs: We are expecting a file on payload. Some of the functions used here are async, so this function is returning a consolidated promise, compromising of all the promises from the async and sync functions.