private RootDocument save ( final Root root ) { final RootDocumentMongo rootdoc = ( RootDocumentMongo ) toDocConverter . createGedDocument ( root ) ; try { repositoryManager . getRootDocumentRepository ( ) . save ( rootdoc ) ; } catch ( DataAccessException e ) { logger . error ( "Could not save root: " + root . getDbName ( ) , e ) ; return null ; } return rootdoc ; }
Save the root to the database .