code: protected Loop newTabsLoop(final String id, final IModel<Integer> model)
  	{
  		final Loop localTabsLoop = new Loop(id, model)
  		{
  			/** The Constant serialVersionUID. */
  			private static final long serialVersionUID = 1L;
  
  			/**
  			 * {@inheritDoc}
  			 */
  			@Override
  			protected LoopItem newItem(final int iteration)
  			{
  				return newTabContainer(iteration);
  			}
  
  			/**
  			 * {@inheritDoc}
  			 */
  			@Override
  			protected void populateItem(final LoopItem item)
  			{
  				final int index = item.getIndex();
  				final T tab = AjaxAddableTabbedPanel.this.tabs.get(index);
  
  				final WebMarkupContainer titleCloseLink = newCloseLink("closeTab", index);
  
  				titleCloseLink.add(newCloseTitle("closeTitle", tab.getCloseTitle(), index));
  				item.add(titleCloseLink);
  
  				final WebMarkupContainer titleLink = newLink("link", index);
  
  				titleLink.add(newTitle("title", tab.getTitle(), index));
  				item.add(titleLink);
  				item.add(new AttributeAppender("class", " label"));
  
  			}
  		};
  		localTabsLoop.setOutputMarkupId(true);
  		return localTabsLoop;
  	}
docs: Factory method for creating a new {@link Loop} for the tabs.
  
  @param id
  the id
  @param model
  the model
  @return the new {@link Loop} for the tabs.