if (parts.isEmpty()) {
return new NoPartContainer(getTitle());
} else if (parts.size() == 1) {
return new SinglePartContainer(parts.get(0));
} else {
return new TabbedPartContainer(parts, new AdminConsolePartDisplayOrder(new StringKeyValue(getClass())));
}
}