.setNamespace(Namespaces.NS_WIRING_PACKAGE)
.addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString());
copyAttribsAndDirectives(entry.getValue(), builder, Constants.VERSION_ATTRIBUTE, "specification-version");
reqs.add(builder.buildRequirement());
}
}
private void copyAttribsAndDirectives(Map<String, String> input, Builder output, String... ignores) {
Set<String> ignoreSet = new HashSet<String>(Arrays.asList(ignores));