/** * Add a section to the manifest * * @param section the manifest section to be added * * @exception ManifestException if the section is not valid. */ public void addConfiguredSection(Manifest.Section section) throws ManifestException { StreamUtils.enumerationAsStream(section.getAttributeKeys()) .map(section::getAttribute).forEach(this::checkAttribute); nestedManifest.addConfiguredSection(section); }
if (ourSection == null) { if (otherSection != null) { addConfiguredSection((Section) otherSection.clone());