Source:
private void replaceLocationsInAllExpressions(TableEntryLocation oldLocation, TableEntryLocation newLocation, boolean tableRenamed) { List<ExternalMapperTable> tables = new ArrayList<ExternalMapperTable>(externalData.getInputTables()); tables.addAll(new ArrayList<ExternalMapperTable>(externalData.getVarsTables())); tables.addAll(new ArrayList<ExternalMapperTable>(externalData.getOutputTables())); DataMapExpressionParser dataMapExpressionParser = new DataMapExpressionParser(LanguageProvider.getCurrentLanguage()); for (ExternalMapperTable table : tables) { List<ExternalMapperTableEntry> metadataTableEntries = table.getMetadataTableEntries(); String expressionFilter = replaceLocation(ol dataMapExpressionParser, tableRenamed); if (expressionFilter != null) { table.setExpressionFilter(expressionFilter); } if (metadataTableEntries != null) { for (ExternalMapperTableEntry entry : metadataTableEntries) { String expression = replaceLocation(oldLocation, newLocation, entry.getExpression(), dataMapExpressionParser, tableRenamed); if (expression != null) { entry.setExpression(expression); } } } if (table.getConstraintTableEntries() != null) { for (ExternalMapperTableEntry entry : table.getConstraintTableEntries()) { String expression = replaceLocation(oldLocation, newLocation, entry.getExpression(), dataMapExpressionParser, tableRenamed); if (expression != null) { entry.setExpression(expression); } } } if (table.getGlobalMapKeysValues() != null) { for (ExternalMapperTableEntry entry : table.getGlobalMapKeysValues()) { String expression = replaceLocation(oldLocation, newLocation, entry.getExpression(), dataMapExpressionParser, tableRenamed); if (expression != null) { entry.setExpression(expression); } } } } }

Target:
private void replaceLocationsInAllExpressions(TableEntryLocation oldLocation, TableEntryLocation newLocation, boolean tableRenamed) { List<ExternalMapperTable> tables = new ArrayList<ExternalMapperTable>(externalData.getInputTables()); tables.addAll(new ArrayList<ExternalMapperTable>(externalData.getVarsTables())); tables.addAll(new ArrayList<ExternalMapperTable>(externalData.getOutputTables())); DataMapExpressionParser dataMapExpressionParser = new DataMapExpressionParser(LanguageProvider.getCurrentLanguage()); for (ExternalMapperTable table : tables) { List<ExternalMapperTableEntry> metadataTableEntries = table.getMetadataTableEntries(); String expressionFilter = replaceLocation(oldLocation, newLocation, table.getExpressionFilter(), dataMapExpressionParser, tableRenamed); if (expressionFilter != null) { table.setExpressionFilter(expressionFilter); } if (metadataTableEntries != null) { for (ExternalMapperTableEntry entry : metadataTableEntries) { String expression = replaceLocation(oldLocation, newLocation, entry.getExpression(), dataMapExpressionParser, tableRenamed); if (expression != null) { entry.setExpression(expression); } } } if (table.getConstraintTableEntries() != null) { for (ExternalMapperTableEntry entry : table.getConstraintTableEntries()) { String expression = replaceLocation(oldLocation, newLocation, entry.getExpression(), dataMapExpressionParser, tableRenamed); if (expression != null) { entry.setExpression(expression); } } } if (table.getGlobalMapKeysValues() != null) { for (ExternalMapperTableEntry entry : table.getGlobalMapKeysValues()) { String expression = replaceLocation(oldLocation, newLocation, entry.getExpression(), dataMapExpressionParser, tableRenamed); if (expression != null) { entry.setExpression(expression); } } } } }