Code Duplication    Length = 8-8 lines in 5 locations

plugins/TurtleGenerator/src/main/java/br/ufrj/ppgi/greco/kettle/TurtleGeneratorStepMeta.java 3 locations

@@ 194-201 (lines=8) @@
191
						Field.MAP_TABLE_HIERARCHY_LABEL_FIELD_NAME.name(),
192
						Field.MAP_TABLE_HIERARCHY_PARA_FIELD_NAME.name());
193
				fields = mapTable2.getHeader().toArray(new String[0]);
194
				for (int i = 0; i < nrLines; i++) {
195
					int nrfields = fields.length;
196
					String[] line = new String[nrfields];
197
198
					for (int f = 0; f < nrfields; f++) {
199
						line[f] = repository.getStepAttributeString(stepIdInRepository, i, fields[f]);
200
					}
201
					mapTable2.add(line);
202
				}
203
204
				break;
@@ 175-182 (lines=8) @@
172
						Field.MAP_TABLE_MEASURE_LABEL_FIELD_NAME.name(), Field.MAP_TABLE_MEASURE_URI_FIELD_NAME.name(),
173
						Field.MAP_TABLE_MEASURE_URI_TYPE_FIELD_NAME.name());
174
				fields = mapTable1.getHeader().toArray(new String[0]);
175
				for (int i = 0; i < nrLines; i++) {
176
					int nrfields = fields.length;
177
					String[] line = new String[nrfields];
178
179
					for (int f = 0; f < nrfields; f++) {
180
						line[f] = repository.getStepAttributeString(stepIdInRepository, i, fields[f]);
181
					}
182
					mapTable1.add(line);
183
				}
184
185
				// Table 4
@@ 160-167 (lines=8) @@
157
						Field.MAP_TABLE_LABELS_FIELD_NAME.name(), Field.MAP_TABLE_URI_FIELD_NAME.name(),
158
						Field.MAP_TABLE_URI_TYPE_FIELD_NAME.name());
159
				String[] fields = mapTable.getHeader().toArray(new String[0]);
160
				for (int i = 0; i < nrLines; i++) {
161
					int nrfields = fields.length;
162
					String[] line = new String[nrfields];
163
164
					for (int f = 0; f < nrfields; f++) {
165
						line[f] = repository.getStepAttributeString(stepIdInRepository, i, fields[f]);
166
					}
167
					mapTable.add(line);
168
				}
169
170
				// TABLE 2

plugins/DataPropertyMapping/src/main/java/br/ufrj/ppgi/greco/kettle/DataPropertyMappingStepMeta.java 1 location

@@ 173-180 (lines=8) @@
170
			 * Field.MAP_TABLE_LANGUAGE_TAG.name(),
171
			 * Field.MAP_TABLE_LANGTAG_FIELD_NAME.name() };
172
			 */
173
			for (int i = 0; i < nrLines; i++) {
174
				int nrfields = fields.length;
175
				String[] line = new String[nrfields];
176
177
				for (int f = 0; f < nrfields; f++) {
178
					line[f] = repository.getStepAttributeString(stepIdInRepository, i, fields[f]);
179
				}
180
				mapTable.add(line);
181
			}
182
			subjectOutputFieldName = repository.getStepAttributeString(stepIdInRepository,
183
					Field.SUBJECT_OUT_FIELD_NAME.name());

plugins/ObjectPropertyMapping/src/main/java/br/ufrj/ppgi/greco/kettle/ObjectPropertyMappingStepMeta.java 1 location

@@ 155-162 (lines=8) @@
152
						Field.MAP_TABLE_PREDICATE_FIELD_NAME.name(), Field.MAP_TABLE_PREDICATE_URI.name(),
153
						Field.MAP_TABLE_OBJECT_FIELD_NAME.name());
154
				String[] fields = mapTable.getHeader().toArray(new String[0]);
155
				for (int i = 0; i < nrLines; i++) {
156
					int nrfields = fields.length;
157
					String[] line = new String[nrfields];
158
159
					for (int f = 0; f < nrfields; f++) {
160
						line[f] = repository.getStepAttributeString(stepIdInRepository, i, fields[f]);
161
					}
162
					mapTable.add(line);
163
				}
164
165
				subjectOutputFieldName = repository.getStepAttributeString(stepIdInRepository,