@Override public TabContents createTab() { List sections = new ArrayList(getSectionDescriptors().size()); for (Iterator iter = getSectionDescriptors().iterator(); iter.hasNext();) { ISectionDescriptor descriptor = (ISectionDescriptor) iter.next(); ISection section = descriptor.getSectionClass(); sections.add(section); } TabContents tab = new TabContents(); tab.setSections((ISection[]) sections.toArray(new ISection[sections .size()])); return tab; }