private Map<String, URI> resolveOsMap(StackModule stackModule, Map<String, String> osMap) {

    Map<String, URI> resolved = new HashMap<>();

    for (Entry<String, String> osEntry : osMap.entrySet()) {

      String uriString = osEntry.getValue();

      URI uri = StackModule.getURI(stackModule, uriString);

      if (null == uri) {
        LOG.warn("Could not resolve URI {}", uriString);
      } else {
        resolved.put(osEntry.getKey(), uri);
      }
    }

    return resolved;
  }
Encapsulates the work to resolve the latest repo information for a stack.
This class must be used AFTER the stack has created its owned repositories.
ambari-server/src/main/java/org/apache/ambari/server/state/stack/RepoUrlInfoCallable.java