code: @Override
      public void close() throws IOException {
          super.close();
          if (entity != null) {
  
              entity.close();
          }
          if (snapshot != null) snapshot.close();
      }
docs: --------------------- Interface AutoCloseable ---------------------