code: @Override
      public void cleanup() throws ResourceException {
          this.session.logout();
          this.session = openSession();
          this.transactions = session.getRepository().transactions();
          this.handles.clear();
      }
docs: Application server calls this method to force any cleanup on the ManagedConnection instance.
  
  @throws ResourceException generic exception if operation fails