LineContentFactory factory = lineArea;
if (this.areaStack.size() > 0) {
factory = this.areaStack.peek();
}
if (nonTextToUse instanceof InstreamForeignObject) {
final InstreamForeignObject ifo = (InstreamForeignObject)
nonTextToUse;
factory.makeForeignObjectArea(ifo, sizeInline, graftingPoint);
} else if (nonTextToUse instanceof ExternalGraphic) {
final ExternalGraphic graphic = (ExternalGraphic) nonTextToUse;
factory.makeExternalGraphicArea(graphic, sizeInline,