if (captionClass != null) {
final String namespace = XDIMESchemata.CDM_NAMESPACE;
final PAPIAttributes genericAttributes =
attributes.getGenericAttributes();
genericAttributes.setAttributeValue(null, "class", captionClass);
stylingEngine.startElement(namespace, "xfoption",
(Attributes) genericAttributes);
pattributes.setCaptionStyles(stylingEngine.getStyles());
stylingEngine.endElement(namespace, "xfoption");
}