if (categoryComposite == null) {
List properties = category.getProperties();
List propertyDescriptors = new ArrayList();
Iterator it = properties.iterator();
BeanClassDescriptor typeDescriptor = (BeanClassDescriptor)
PolicyModel.MODEL_DESCRIPTOR.
getTypeDescriptorStrict(StyleProperties.class);
while (it.hasNext()) {
StyleProperty details = (StyleProperty) it.next();
PropertyIdentifier identifier = ThemeModel.
getPropertyIdentifierForStyleProperty(details);
PropertyDescriptor descriptor =
typeDescriptor.getPropertyDescriptor(identifier);
propertyDescriptors.add(descriptor);
}
PropertyDescriptor[] descriptors = new PropertyDescriptor[propertyDescriptors.size()];
descriptors = (PropertyDescriptor[]) propertyDescriptors.toArray(descriptors);