for(ClassBundle cb : elem.getExportBundles()) {
list.add(cb.getClassName());
}
String[] cbInterfaces = list.toArray(new String[list.size()]);
if(Arrays.equals(adInterfaces, cbInterfaces)) {
if(ad.matchOnName()) {
if(ad.getName().equals(elem.getName())) {
matching.add(elem);
}
} else {
matching.add(elem);