code: Object getPrimaryDatabase() throws FetchException {
          Object database = mPrimaryDatabase;
          if (database == null) {
              checkClosed();
              throw new IllegalStateException("BDBStorage not opened");
          }
          return database;
      }
docs: Caller must hold transaction lock. May throw FetchException if storage
  is closed.