code: public void close() {
          // getting a read lock will ensure all writes have finished
          // if we are really closing assume that we don't care about reads
          readLock.lock();
          try {
              if (container != null) {
                  try {
                      container.close();
                      container = null;
                      log.info("Closed container");
                  } catch (XmlException e) {
                      log.warn("close failed: " + e.getMessage(), e);
                  }
              }
  
              if (manager != null) {
                  try {
                      manager.close();
                      manager = null;
                      log.info("Closed manager");
                  } catch (XmlException e) {
                      log.warn("close failed: " + e.getMessage(), e);
                  }
              }
          } finally {
              readLock.unlock();
          }
      }
docs: Closes the dbxml container and manager.