private void processGroups ( final Document document ) { // handle imports final NodeList groupNodeList = document . getElementsByTagName ( TAG_GROUP ) ; for ( int i = 0 ; i < groupNodeList . getLength ( ) ; i ++ ) { final Element groupElement = ( Element ) groupNodeList . item ( i ) ; final String name = groupElement . getAttribute ( ATTR_GROUP_NAME ) ; allGroupElements . put ( name , groupElement ) ; } }
Initialize the map