private void generateCorrespondences( List<INode> sourceAttributes, List<INode> targetAttributes, MappingTask mappingTask) { for (INode sourceAttribute : sourceAttributes) { for (INode targetAttribute : targetAttributes) { if (sourceAttribute.getLabel().equals(targetAttribute.getLabel())) { PathExpression sourcePath = new GeneratePathExpression().generatePathFromRoot(sourceAttribute); PathExpression targetPath = new GeneratePathExpression().generatePathFromRoot(targetAttribute); ValueCorrespondence correspondence = new ValueCorrespondence(sourcePath, targetPath); mappingTask.addCorrespondence(correspondence); break; } } } }