}
private static URI createURI(Artifact artifact, Map name, Set interfaceTypes) {
StringBuffer queryString = new StringBuffer();
TreeMap treeMap = new TreeMap(name);
for (Iterator iterator = treeMap.entrySet().iterator(); iterator.hasNext();) {
Map.Entry entry = (Map.Entry) iterator.next();
String key = (String) entry.getKey();
String value = (String) entry.getValue();
queryString.append(key).append('=').append(value);
if (iterator.hasNext()) {