public List < Group > getTopGroups ( ) { if ( root != null && root . getGroups ( ) != null && root . getGroups ( ) . size ( ) == 1 ) { return root . getGroups ( ) . get ( 0 ) . getGroups ( ) ; } return new ArrayList < Group > ( ) ; }
Retrieves all groups at the root level of a KeePass database .