private void exportLinks(final SyncData syncData) { for (final CnALink link : linkSet) { CnATreeElement dependant = link.getDependant(); dependant = getFromCache(dependant); if (dependant == null) { log.warn("Dependant of link not found. Check access rights. " + link.getId()); continue; } link.setDependant(dependant); CnATreeElement dependency = link.getDependency(); dependency = getFromCache(dependency); if (dependency == null) { log.warn("Dependency of link not found. Check access rights. " + link.getId()); continue; } link.setDependency(dependency); ExportFactory.transform(link, syncData.getSyncLink()); } }