final LineArea lineArea = (LineArea) lineOutput;
GraftingPoint graftingPoint = null;
LineText textToUse = text;
if (textToUse instanceof org.axsl.fo.FoLineText) {
final FoLineText foLineText = (FoLineText) textToUse;
graftingPoint = foLineText.getGraftingPoint();
textToUse = foLineText.getWrapped();
}
LineContentFactory factory = lineArea;
if (this.areaStack.size() > 0) {
factory = this.areaStack.peek();
}