BasicLink fobj = (BasicLink) this.fobj;
// internal destinations take precedence:
TraitSetter.addStructureTreeElement(area, fobj.getStructureTreeElement());
if (fobj.hasInternalDestination()) {
String idref = fobj.getInternalDestination();
PageSequenceLayoutManager pslm = getPSLM();
// the INTERNAL_LINK trait is added by the LinkResolver
// if and when the link is resolved:
LinkResolver res = new LinkResolver(idref, area);
res.resolveIDRef(idref, pslm.getFirstPVWithID(idref));
if (!res.isResolved()) {
pslm.addUnresolvedArea(idref, res);
if ( area instanceof BasicLinkArea ) {
// establish back-pointer from BasicLinkArea to LinkResolver to
// handle inline area unflattening during line bidi reordering;
// needed to create internal link trait on synthesized basic link area
((BasicLinkArea)area).setResolver(res);