if (null == versionEntity) {
throw new AmbariException(String.format("Version %s for stack %s was not found",
repoVersion, stack.getStackVersion()));
}
Map<String, UpgradePack> packs = s_metaProvider.get().getUpgradePacks(
<BUG>stack.getStackName(), stack.getStackVersion());
</BUG>
UpgradePack up = packs.get(versionEntity.getUpgradePackage());
if (null == up) {
throw new AmbariException(String.format(

if (null == versionEntity) {
throw new AmbariException(String.format("Version %s for stack %s was not found",
repoVersion, stack.getStackVersion()));
}
Map<String, UpgradePack> packs = s_metaProvider.get().getUpgradePacks(
versionEntity.getStackName(), versionEntity.getStackVersion());
UpgradePack up = packs.get(versionEntity.getUpgradePackage());
if (null == up) {
throw new AmbariException(String.format(
