code: protected LoopItem newTabContainer(final int tabIndex)
  	{
  		return new LoopItem(tabIndex)
  		{
  			/** The Constant serialVersionUID. */
  			private static final long serialVersionUID = 1L;
  
  			/**
  			 * {@inheritDoc}
  			 */
  			@Override
  			protected void onComponentTag(final ComponentTag tag)
  			{
  				super.onComponentTag(tag);
  
  				String cssClass = tag.getAttribute("class");
  				if (cssClass == null)
  				{
  					cssClass = " ";
  				}
  				cssClass += " tab" + getIndex();
  
  				if (getIndex() == getSelectedTab())
  				{
  					cssClass += ' ' + getSelectedTabCssClass();
  				}
  				if (getVisiblityCache().getLastVisible() == getIndex())
  				{
  					cssClass += ' ' + getLastTabCssClass();
  				}
  				tag.put("class", cssClass.trim());
  			}
  
  			/**
  			 * {@inheritDoc}
  			 */
  			@Override
  			protected void onConfigure()
  			{
  				super.onConfigure();
  				setVisible(getVisiblityCache().isVisible(tabIndex));
  			}
  		};
  	}
docs: Generates a loop item used to represent a specific tab's <code>li</code> element.
  
  @param tabIndex
  the tab index
  @return new loop item