Enumeration entries = bundle.findEntries("OSGI-INF/remote-service", "*.xml", false);
if (entries == null) {
return Collections.emptyList();
}
List<ServiceDecorationType> elements = new ArrayList<ServiceDecorationType>();
<BUG>while (entries.hasMoreElements()) {
elements.addAll(parser.getDecorations((URL)entries.nextElement()));
}</BUG>
return elements;
}

Enumeration entries = bundle.findEntries("OSGI-INF/remote-service", "*.xml", false);
if (entries == null) {
return Collections.emptyList();
}
List<ServiceDecorationType> elements = new ArrayList<ServiceDecorationType>();
while (entries.hasMoreElements()) {
try {
elements.addAll(parser.getDecorations((URL)entries.nextElement()));
} catch (Exception e) {
LOG.warn("Error parsing remote-service descriptions in bundle" + bundle.getSymbolicName(), e);
}
}
return elements;
}
