public String getTargetVersion(String serviceName) {
    RepositoryVersionEntity serviceTargetVersion = m_targetRepositoryMap.get(serviceName);
    return serviceTargetVersion.getVersion();
  }
Gets the version 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 targetting the
same repository version. However, {@link Direction#DOWNGRADE} will target
the original repository that the service was on.

@return the target version for the upgrade
@see #getTargetRepositoryVersion(String)
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/orchestrate/UpgradeContext.java