}
}
if (childMarkup == null)
{
throw new MarkupNotFoundException("No Markup found for Fragment " + markupId +
" in providing markup container " + getMarkupProvider(container));
}
else
{
MarkupElement fragmentTag = childMarkup.get(0);
if ((fragmentTag instanceof WicketTag && ((WicketTag)fragmentTag).isFragmentTag()) == false)
{
throw new MarkupNotFoundException("Markup found for Fragment '" + markupId
+ "' in providing markup container " + getMarkupProvider(container)
+ " is not a <wicket:fragment> tag");
}
}