Map<String, String> attribs = entry.getValue();
Util.copyAttribsToBuilder(builder, attribs);
if ("capability".equalsIgnoreCase(type) || "cap".equalsIgnoreCase(type))
caps.add(builder.buildCapability());
else if ("requirement".equalsIgnoreCase(type) || "req".equalsIgnoreCase(type))
reqs.add(builder.buildRequirement());
else throw new IllegalArgumentException(MessageFormat.format("Invalid indicator type in known-bundle parsing for bundle \"{0}\", must be either cap[ability] or req[uirement], found \"{1}\".", bundleRef));
} else {
throw new IllegalArgumentException(MessageFormat.format("Invalid indicator format in known-bundle parsing for bundle \"{0}\", expected type@namespace, found \"{1}\".", bundleRef, indicator));