private static void section3 ( List < GroupingNotation > groupings , Map < String , String > mapIds ) throws NotationException { for ( GroupingNotation grouping : groupings ) { GroupEntity groupID = grouping . getGroupID ( ) ; if ( mapIds . containsKey ( groupID . getId ( ) ) ) { groupID = new GroupingNotation ( mapIds . get ( groupID . getId ( ) ) ) . getGroupID ( ) ; } String details = grouping . toHELM2 ( ) . split ( "\\(" ) [ 1 ] . split ( "\\)" ) [ 0 ] ; details = changeIDs ( details , mapIds ) ; helm2notation . addGrouping ( new GroupingNotation ( groupID , details ) ) ; } }
method to add groupings to the existent grouping section