Feature feature = featuresService.getFeature(name, version);
return infoFeature(feature);
}
private TabularData infoFeature(Feature feature) throws Exception {
JmxFeature jmxFeature = null;
if (featuresService.isInstalled(feature)) {
jmxFeature = new JmxFeature(feature, true);
} else {
jmxFeature = new JmxFeature(feature, false);
}
ArrayList<JmxFeature> features = new ArrayList<JmxFeature>();
features.add(jmxFeature);
TabularData table = JmxFeature.tableFrom(features);
return table;