if (!dir.exists()) {
unzipComponent(componentName, jarFile, dir);
}
// See if the JAR is newer than the directory. If so, the component
// needs to be unloaded and then reloaded.
else if (jarFile.lastModified() > dir.lastModified()) {
unloadComponent(componentName);
// Ask the system to clean up references.
System.gc();
while (!deleteDir(dir)) {
manager.getLog().error("Error unloading component " + componentName + ". " +