Source:
<code>private void writeSubsystemDesignTraceability(Artifact subsystem) throws IOException { excelWriter.startSheet(subsystem.getName(), 200); excelWriter.writeRow(subsystem.getName() + " Subsystem To Design Traceability"); excelWriter.writeRow("Subsystem Requirement", null, "Subsystem Design"); excelWriter.writeRow(CoreAttributeTypes.ParagraphNumber.getName(), "Paragraph Title", CoreAttributeTypes.ParagraphNumber.getName(), "Paragraph Title"); List<Artifact> descendants = subsystem.getDescendants(); if (descendants != null) { ViewIdUtility.removeExcludedArtifacts(descendants.iterator(), excludedArtifactIdMap); <START> } if (descendants != null) { <END> for (Artifact subsystemRequirement : descendants) { excelWriter.writeCell(subsystemRequirement.getSoleAttributeValue(CoreAttributeTypes.ParagraphNumber, "")); excelWriter.writeCell(subsystemRequirement.getName()); if (subsystemRequirement.isOfType(CoreArtifactTypes.SubsystemRequirementMSWord)) { boolean loopNeverRan = true; List<Artifact> relatedArtifacts = subsystemRequirement.getRelatedArtifacts(CoreRelationTypes.Design__Design); ViewIdUtility.removeExcludedArtifacts(relatedArtifacts.iterator(), excludedArtifactIdMap); for (Artifact subsystemDesign : relatedArtifacts) { if (subsystemDesign.isOfType(CoreArtifactTypes.SubsystemDesign)) { loopNeverRan = false; excelWriter.writeCell( subsystemDesign.getSoleAttributeValue(CoreAttributeTypes.ParagraphNumber, ""), 2); excelWriter.writeCell(subsystemDesign.getName(), 3); excelWriter.endRow(); } } if (loopNeverRan) { excelWriter.endRow(); } } else { excelWriter.writeCell("N/A - " + subsystemRequirement.getArtifactTypeName()); excelWriter.endRow(); } } } excelWriter.endSheet(); }</code><technical_language>lines removed</technical_language>

Target:
private void writeSubsystemDesignTraceability(Artifact subsystem) throws IOException { excelWriter.startSheet(subsystem.getName(), 200); excelWriter.writeRow(subsystem.getName() + " Subsystem To Design Traceability"); excelWriter.writeRow("Subsystem Requirement", null, "Subsystem Design"); excelWriter.writeRow(CoreAttributeTypes.ParagraphNumber.getName(), "Paragraph Title", CoreAttributeTypes.ParagraphNumber.getName(), "Paragraph Title"); List<Artifact> descendants = subsystem.getDescendants(); if (descendants != null) { ViewIdUtility.removeExcludedArtifacts(descendants.iterator(), excludedArtifactIdMap); for (Artifact subsystemRequirement : descendants) { excelWriter.writeCell(subsystemRequirement.getSoleAttributeValue(CoreAttributeTypes.ParagraphNumber, "")); excelWriter.writeCell(subsystemRequirement.getName()); if (subsystemRequirement.isOfType(CoreArtifactTypes.SubsystemRequirementMSWord)) { boolean loopNeverRan = true; List<Artifact> relatedArtifacts = subsystemRequirement.getRelatedArtifacts(CoreRelationTypes.Design__Design); ViewIdUtility.removeExcludedArtifacts(relatedArtifacts.iterator(), excludedArtifactIdMap); for (Artifact subsystemDesign : relatedArtifacts) { if (subsystemDesign.isOfType(CoreArtifactTypes.SubsystemDesign)) { loopNeverRan = false; excelWriter.writeCell( subsystemDesign.getSoleAttributeValue(CoreAttributeTypes.ParagraphNumber, ""), 2); excelWriter.writeCell(subsystemDesign.getName(), 3); excelWriter.endRow(); } } if (loopNeverRan) { excelWriter.endRow(); } } else { excelWriter.writeCell("N/A - " + subsystemRequirement.getArtifactTypeName()); excelWriter.endRow(); } } } excelWriter.endSheet(); }