docs: function extractSWMContext(swmParams) {
              var result = {};
  
              if (swmParams.projectId) {
                  result.projectId = swmParams.projectId;
                  if (swmParams.branchName || swmParams.branch || swmParams.commitHash || swmParams.commit) {
                      // Add any of these.
                      result.branchName = swmParams.branchName || swmParams.branch;
                      result.commitHash = swmParams.commitHash || swmParams.commit;
                  }
              } else if (swmParams.context &&
                  swmParams.context.managerConfig &&
                  swmParams.context.managerConfig.project) {
                  // This is a plugin request..
                  result.projectId = swmParams.context.managerConfig.project;
                  result.commitHash = swmParams.context.managerConfig.commitHash;
                  result.branchName = swmParams.context.managerConfig.branchName;
              }
  
              return result;
          }