// remove tag must not be open-close tags
if (openTag.isOpenClose())
{
throw new ParseException("Wicket remove tag must not be an open-close tag: "
+ openTag.toUserDebugString(), openTag.getPos());
}
// Find the corresponding close tag and remove all tags in between
ComponentTag closeTag;
while (null != (closeTag = (ComponentTag)getParent().nextTag()))