public static NounFormat asContext(final boolean border,
final Layout d, final Label l) {
return new NounFormat() {
public Connected returnElement(Container c, SimpleNoun to,
InsertionInterface ii) {
Label toUse = (l == null) ? (to.getLabel() == null ? null
: new TextLine(to.getLabel())) : l;
DiagramElement de = ii.returnContext(c, to, border ? toUse
: null, border, d);
if (de instanceof Connected) {
return (Connected) de;