return featuresRepositories.toArray();
} else if (parentElement instanceof FeaturesRepository) {
final FeaturesRepository featuresRepository = (FeaturesRepository) parentElement;
return featuresRepository.getFeatures().getFeatures().toArray();
} else if (parentElement instanceof Features) {
final Features features = (Features) parentElement;
return features.getFeatures().toArray();
} else if (parentElement instanceof Feature) {
final Feature feature = (Feature) parentElement;
return ListUtils.union(feature.getFeatures(), feature.getBundles()).toArray();
} else {
return new Object[0];