code: public KeePassFile close() {
          Group rootNode = getRoot();
  
          return new KeePassFileBuilder(meta).addTopGroups(rootNode).build();
      }
docs: Returns a new {@link KeePassFile} from the current tree structure.
  
  @return a new KeePass file