final void update(String remoteLocation) throws ServletException { if ((remoteLocation != null) && (remoteLocation.length() > 0)) jarURL = remoteLocation; Collection c = servletObjects.values(); Iterator i = c.iterator(); Servlet s; while(i.hasNext()) { s = (Servlet)i.next(); s.destroy(); } c = null; i = null; jl = null; servletObjects.clear(); servletObjects = null; System.gc(); jl = new JSPloader(handler, jarName, jarURL); servletObjects = new HashMap(jl.getSize()); }