try {
ResourceUtil.deleteContent(trgDir, null);
ResourceUtil.moveTo(archive, trgFile,true);
log.info("archive","add "+type+" mapping ["+virtual+"] with archive ["+trgFile.getAbsolutePath()+"]");
if("regular".equalsIgnoreCase(type))
ConfigWebAdmin.updateMapping((ConfigImpl)config,virtual, null, trgFile.getAbsolutePath(), "archive", inspect, topLevel);
else if("cfc".equalsIgnoreCase(type))
ConfigWebAdmin.updateComponentMapping((ConfigImpl)config,virtual, null, trgFile.getAbsolutePath(), "archive", inspect);
else if("ct".equalsIgnoreCase(type))