public void addConfiguredSection ( Section section ) throws ManifestException { String sectionName = section . getName ( ) ; if ( sectionName == null ) { throw new ManifestException ( "Sections must have a name" ) ; } Attributes attributes = getOrCreateAttributes ( sectionName ) ; for ( String s : section . attributes . keySet ( ) ) { Attribute attribute = section . getAttribute ( s ) ; attributes . putValue ( attribute . getName ( ) , attribute . getValue ( ) ) ; } }
Add a section to the manifest