try {
List<Feature> allFeatures = Arrays.asList(featuresService.listFeatures());
List<Feature> insFeatures = Arrays.asList(featuresService.listInstalledFeatures());
ArrayList<JmxFeature> features = new ArrayList<JmxFeature>();
for (Feature feature : allFeatures) {
features.add(new JmxFeature(feature, insFeatures.contains(feature)));
}
TabularData table = JmxFeature.tableFrom(features);
return table;
} catch (Throwable t) {
t.printStackTrace();