container/src/main/java/com/streamsets/datacollector/configupgrade/PipelineConfigurationUpgrader.java
static StageConfiguration upgradeIfNeeded(StageLibraryTask library, StageConfiguration conf, List<Issue> issues) {
    return upgradeIfNeeded(
        library,
        library.getStage(conf.getLibrary(), conf.getStageName(), false),
        conf,
        issues
    );
  }
static StageConfiguration upgradeIfNeeded(StageLibraryTask library, StageConfiguration conf, List<Issue> issues) {
    return upgradeIfNeeded(
        library,
        library.getStage(conf.getLibrary(), conf.getStageName(), false),
        conf,
        issues
    );
  }
Upgrade whole Stage configuration, including all services if needed. Convenience method that will lookup stage
definition from the library.

This method is idempotent.