public Group addGroup ( Group parent , Group g ) { if ( immutable ) throw new IllegalStateException ( "Cant modify" ) ; if ( parent == null ) parent = rootGroup ; parent . addGroup ( g ) ; return g ; }
Add a group to the parent group .