Border border = this;
if (border.getMarkupStream() == null)
{
// Find Border at or above parent of this border
final MarkupContainer borderParent = border.getParent();
border = (Border)((borderParent instanceof Border) ? borderParent : borderParent
.findParent(Border.class));
}
// Get the border's markup
final MarkupStream borderMarkup = border.findMarkupStream();