code: public static SortedMap<String, DependencyInfo> createDependencyInfoMap(
              final SortedMap<String, String> versionMap) {
  
          // Check sanity
          Validate.notNull(versionMap, "anURL");
  
          final SortedMap<String, DependencyInfo> toReturn = new TreeMap<String, DependencyInfo>();
  
          // First, only find the version lines.
          for (Map.Entry<String, String> current : versionMap.entrySet()) {
  
              final String currentKey = current.getKey().trim();
              if (currentKey.contains(VERSION_LINE_INDICATOR)) {
  
                  final StringTokenizer tok = new StringTokenizer(currentKey, GROUP_ARTIFACT_SEPARATOR, false);
                  Validate.isTrue(tok.countTokens() == 3, "Expected key on the form [groupId]"
                          + GROUP_ARTIFACT_SEPARATOR + "[artifactId]" + VERSION_LINE_INDICATOR + ", but got ["
                          + currentKey + "]");
  
                  final String groupId = tok.nextToken();
                  final String artifactId = tok.nextToken();
  
                  final DependencyInfo di = new DependencyInfo(groupId, artifactId, current.getValue());
                  toReturn.put(di.getGroupArtifactKey(), di);
              }
          }
  
          for (Map.Entry<String, DependencyInfo> current : toReturn.entrySet()) {
  
              final String currentKey = current.getKey();
              final DependencyInfo di = current.getValue();
  
              final String scope = versionMap.get(currentKey + SCOPE_LINE_INDICATOR);
              final String type = versionMap.get(currentKey + TYPE_LINE_INDICATOR);
  
              if (scope != null) {
                  di.setScope(scope);
              }
              if (type != null) {
                  di.setType(type);
              }
          }
  
          // All done.
          return toReturn;
      }
docs: Converts a SortedMap received from a {@code getVersionMap} call to hold DependencyInfo values,
  and keys on the form {@code groupId/artifactId}.
  
  @param versionMap A non-null Map, as received from a call to {@code getVersionMap}.
  @return a SortedMap received from a {@code getVersionMap} call to hold DependencyInfo values,
  and keys on the form {@code groupId/artifactId}.