if (templatesOfItem == null || templatesOfItem.isEmpty())
{
List<Template> repeatChildren= itemProcessor.getRepeatTemplates(item);
for (Template template : repeatChildren)
templateHandler.makeInvisible(template);
templatesOfItem= templateHandler.cloneTemplates(repeatChildren);
insertTemplates(itemProcessor, item, templatesOfItem, entry);
for (Template repeatChild : templatesOfItem)