code: public void free()
      {
          if (m_env != null)
          {
              m_env.removeApplication(this);
              m_env.freeIfDone();
          }
          
          super.free();
  
          if (m_databaseCollection != null)
              m_databaseCollection.free();
          m_databaseCollection = null;
  
          m_env = null;
  
          m_resources = null;
      }
docs: Free all the resources belonging to this applet. If all applet screens are closed, shut down the applet.