code: public void stop() throws LifecycleException {
  
          // Clearing references should be done before setting started to
          // false, due to possible side effects
          clearReferences();
  
          // Annotations dont need a running app.
          //started = false;
  
          int length = files.length;
          for (int i = 0; i < length; i++) {
              files[i] = null;
          }
  
          length = jarFiles.length;
          for (int i = 0; i < length; i++) {
              try {
                  if (jarFiles[i] != null) {
                      jarFiles[i].close();
                  }
              } catch (IOException e) {
                  // Ignore
              }
              jarFiles[i] = null;
          }
  
          notFoundResources.clear();
          resourceEntries.clear();
          resources = null;
          repositories = null;
          repositoryURLs = null;
          files = null;
          jarFiles = null;
          jarRealFiles = null;
          jarPath = null;
          jarNames = null;
          lastModifiedDates = null;
          paths = null;
          hasExternalRepositories = false;
          parent = null;
  
          permissionList.clear();
          loaderPC.clear();
  
          if (loaderDir != null) {
              deleteDir(loaderDir);
          }
  
      }
docs: Stop the class loader.
  
  @exception LifecycleException if a lifecycle error occurs