Collection<? extends IProviderPropertyGroupInfo> groups = providerInfo.getPropertyGroups();
for (IProviderPropertyGroupInfo group : groups) {
Collection<? extends IProviderPropertyInfo> properties = group.getConfigurationInfo();
PropertyGroup propertyGroup = new PropertyGroup();
propertyGroup.setName(group.getName());
for (IProviderPropertyInfo property : properties) {
NamedValue nv = new NamedValue();
nv.setName(property.getName());
nv.setValue(property.getDefaultValue());
propertyGroup.addProperty(nv);
}
settings.addGroup(propertyGroup);
}
return settings;