public void addRootGroup(final Group nextRootGroup)
    {
        this.getRootGroups().add(nextRootGroup);
        
        RepositoryConnection conn = null;
        try
        {
            conn = this.repository.getConnection();
            conn.begin();
            
            this.storeGroup(nextRootGroup, conn, true);
            
            conn.commit();
        }
        catch(final RepositoryException e)
        {
            this.log.error("Found exception while storing root group", e);
            if(conn != null)
            {
                try
                {
                    conn.rollback();
                }
                catch(final RepositoryException e1)
                {
                    this.log.error("Found exception while trying to roll back connection", e1);
                }
            }
        }
        finally
        {
            if(conn != null)
            {
                try
                {
                    conn.close();
                }
                catch(final RepositoryException e)
                {
                    this.log.error("Found exception closing repository connection", e);
                }
            }
        }
    }
public void addRootGroup ( final Group nextRootGroup ) { this . getRootGroups ( ) . add ( nextRootGroup ) ; RepositoryConnection conn = null ; try { conn = this . repository . getConnection ( ) ; conn . begin ( ) ; this . storeGroup ( nextRootGroup , conn , true ) ; conn . commit ( ) ; } catch ( final RepositoryException e ) { this . log . error ( "Found exception while storing root group" , e ) ; if ( conn != null ) { try { conn . rollback ( ) ; } catch ( final RepositoryException e1 ) { this . log . error ( "Found exception while trying to roll back connection" , e1 ) ; } } } finally { if ( conn != null ) { try { conn . close ( ) ; } catch ( final RepositoryException e ) { this . log . error ( "Found exception closing repository connection" , e ) ; } } } }
Adds a fully populated root group to the underlying repository, including a statement
indicating that this group is a root group.

@param nextRootGroup The next root group to add.