while (curContainer != null) { IElementDefn containerDefn = curContainer.getDefn();
if ( slotId == DesignElement.NO_SLOT ) { curContainer = toValidate.getContainer( ); curSlotID = toValidate.getContainerSlot( ); }
	private List doValidate(ReportDesign design, DesignElement toValidate) {		List list = new ArrayList();		DesignElement curContainer = toValidate.getContainer();		int curSlotID = toValidate.getContainerSlot();		while (curContainer != null) {			IElementDefn containerDefn = curContainer.getDefn();			if (ReportDesignConstants.TABLE_ITEM.equalsIgnoreCase(containerDefn					.getName())					&& curSlotID == TableItem.HEADER_SLOT) {				list						.add(new ContentException(								curContainer,								curSlotID,								toValidate,								ContentException.DESIGN_EXCEPTION_INVALID_CONTEXT_CONTAINMENT));			}			curSlotID = curContainer.getContainerSlot();			curContainer = curContainer.getContainer();		}		return list;	}