final Properties properties = (Properties) service.getAdapter(Properties.class);
final List<PropertyEntry> entries = new ArrayList<PropertyEntry>();
if (properties == null) {
final PropertyEntry pi = new PropertyEntry(service, "Properties unavailable", "");
entries.add(pi);
} else {
for (final Object o: properties.keySet()) {
final String key = (String)o;
final PropertyEntry pi = new PropertyEntry(service, key, properties.get(key));
entries.add(pi);
}
}
result = entries.toArray(new Object[0]);