final Set<String> components = new HashSet<String>();
for (Map.Entry<String, File> entry : artifacts.entrySet()) {
String name = entry.getKey();
File f = entry.getValue();
if (!isWar(name, f)) {
archive.addAsLibrary(f);
Manifest mf = readManifest(f);
if (mf.getMainAttributes().containsKey(new Attributes.Name(SERVICE_COMPONENT))) {
String serviceComponents = mf.getMainAttributes().getValue(SERVICE_COMPONENT);
for (String component : Strings.splitAndTrimAsList(serviceComponents, ",")) {
if (VALID_COMPONENT_PATH_PATTERN.matcher(component).matches()) {