code: public void destroy() {
          for (int j = 0; j < mApplications.length; j++) {
              if (mApplications[j] != null) {
                  mApplications[j].destroy();
              }
          }
      }
docs: This method destroys the ApplicationDepot.