String type = ivy.substitute(attributes.getValue("type"));
type = type == null ? "jar" : type;
String ext = ivy.substitute(attributes.getValue("ext"));
ext = ext != null ? ext : type;
String url = ivy.substitute(attributes.getValue("url"));
artifact = new MDArtifact(md, artName, type, ext, url == null ? null
: new URL(url), ExtendableItemHelper.getExtraAttributes(attributes,
new String[] {"ext", "type", "name", "conf"}));
String confs = ivy.substitute(attributes.getValue("conf"));
// only add confs if they are specified. if they aren't, endElement will
// handle this