code: function extractStageFromQualifiedResourceName(qualifiedResourceName, context) {
    const stage = _extractStageFromQualifiedName(qualifiedResourceName, settingNames.extractStageFromResourceName, context);
    return isNotBlank(stage) ? stage :
      _extractNameAndStageFromQualifiedName(qualifiedResourceName, settingNames.extractNameAndStageFromResourceName, context)[1];
  
  }
docs: Extracts the stage from the given stage-qualified resource name (if non-blank and an extractStageFromResourceName
  function is configured); otherwise returns an empty string.
  
  This function uses the configured extractStageFromResourceName function (if any) on the given context to determine
  its actual behaviour.
  
  @param {string} qualifiedResourceName - the stage-qualified resource name
  @param {StageHandling|Object} context - the context to use with stage handling settings and logging functionality
  @returns {string} the stage extracted from the stage-qualified resource name; or an empty string