final CSSValue borderSpacingVal =
layoutContext.getValue(TableStyleKeys.BORDER_SPACING);
if (borderSpacingVal instanceof CSSValuePair)
{
final CSSValuePair borderSpacingPair = (CSSValuePair) borderSpacingVal;
tableInfo.setRowSpacing (DefaultBoxDefinitionFactory.computeWidth
(borderSpacingPair.getFirstValue(),
layoutContext, metaData, false, false));
tableInfo.setBorderSpacing (DefaultBoxDefinitionFactory.computeWidth
(borderSpacingPair.getSecondValue(),
layoutContext, metaData, false, false));
}
else
{
tableInfo.setBorderSpacing(RenderLength.EMPTY);