public RepositoryVersionEntity getTargetRepositoryVersion(String serviceName) {
    return m_targetRepositoryMap.get(serviceName);
  }
Gets the repository being upgraded to or downgraded to for the given
service. This is the version that the service will be on if the upgrade or
downgrade succeeds.
<p/>
With a {@link Direction#UPGRADE}, all services should be targeting the
same repository version. However, {@link Direction#DOWNGRADE} will target
the original repository that the service was on.

@return the target repository for the upgrade
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/orchestrate/UpgradeContext.java