if (componentAnnotation.tabs().length == 0) {
TabHolder tabHolder = new TabHolder();
tabHolder.setTitle(dialogTitle);
tabsList.add(tabHolder);
} else {
for (com.citytechinc.cq.component.annotations.Tab tab : componentAnnotation.tabs()) {
if (StringUtils.isNotEmpty(tab.title()) && StringUtils.isNotEmpty(tab.path())) {
throw new InvalidComponentClassException("Tabs can have only a path or a title");
}
TabHolder tabHolder = new TabHolder();
if (StringUtils.isNotEmpty(tab.title())) {