}
int propID = FOPropertyMapping.getPropertyId(propName);
if (propID < 0) {
collector.notifyAssertionFailure("Property not found: " + propName);
} else {
Property prop;
prop = propertyList.getParentPropertyList().get(propID);
if (component != null) {
//Access subcomponent
Property mainProp = prop;
prop = null;
LengthPairProperty lpp = mainProp.getLengthPair();
if (lpp != null) {
prop = lpp.getComponent(FOPropertyMapping.getSubPropertyId(component));
}
LengthRangeProperty lrp = mainProp.getLengthRange();
if (lrp != null) {
prop = lrp.getComponent(FOPropertyMapping.getSubPropertyId(component));
}
KeepProperty kp = mainProp.getKeep();
if (kp != null) {
prop = kp.getComponent(FOPropertyMapping.getSubPropertyId(component));
}
SpaceProperty sp = mainProp.getSpace();
if (sp != null) {
prop = sp.getComponent(FOPropertyMapping.getSubPropertyId(component));
}
}
String s;