/** * Closes the instance of AppClientInfo, deleting any temporary directory created and closing the * archive. * * @throws IOException in case of error closing the archive */ @Override protected void close() throws IOException { try { // XXX Mitesh helping to update this // if (puAppInfo != null) { // new PersistenceUnitLoaderImpl().unload(puAppInfo); // puAppInfo = null; // } if (appClientArchive != null) { appClientArchive.close(); } ClassLoader classLoader = getClassLoader(); if (classLoader != null && classLoader instanceof ASURLClassLoader) { ((ASURLClassLoader) classLoader).done(); } } finally { if (deleteAppClientDir()) { if (appClientArchive != null) { appClientArchive.delete(); } } appClientArchive = null; } }