// Localize the property names and descriptions:
PropertyDescriptor[] properties = getPropertyDescriptors();
for (PropertyDescriptor property : properties) {
String name = property.getName();
final String propDnKey = name + ".displayName";
if(resourceBundle.containsKey(propDnKey)) {
property.setDisplayName(resourceBundle.getString(propDnKey)); // $NON-NLS-1$
} else {
log.debug("Localized display name not available for property " + name + " in " + beanClass);
}
final String propSdKey = name + ".shortDescription";