/**
  * Adds the given WebModule to the list of monitorable entries for dynamic reloading.
  *
  * @param wm The WebModule to add to the list of monitorable entries for dynamic reloading
  */
 public void addWebModule(WebModule wm) {
   if (wm != null && isEnabled(wm.getConfigContext(), wm.getName())) {
     String name = wm.getName();
     String id = name + "[" + _id + "]";
     String fileName = getReloadFilename(wm);
     MonitorableEntry entry = new MonitorableEntry(id, name, new File(fileName), this);
     _reloadables.add(id);
     reloadMonitor.addMonitorableEntry(entry);
   }
 }
 /** Returns the absolute pathname to the .reload file in the specified web module's directory. */
 private String getReloadFilename(WebModule wm) {
   String path = wm.getLocation();
   File dir = new File(path);
   if (!dir.isAbsolute()) path = _modulesRoot + "/" + path;
   return path + "/" + ReloadMonitor.RELOAD_FILE;
 }