if (wmInfo.getDescriptor() != null &&
wmInfo.getDescriptor().getSunDescriptor() != null) {
SunWebAppImpl sunWebApp = (SunWebAppImpl) wmInfo.getDescriptor().getSunDescriptor();
if (sunWebApp.getSessionConfig() != null &&
sunWebApp.getSessionConfig().getSessionManager() != null) {
SessionManager sessionManager =
sunWebApp.getSessionConfig().getSessionManager();
String persistenceType = sessionManager.getAttributeValue(
SessionManager.PERSISTENCE_TYPE);
if (PersistenceType.COHERENCE_WEB.getType().equals(persistenceType)) {
ClassLoader cloader = wmInfo.getAppClassLoader();
try {
Class<?> cacheFactoryClass = cloader.loadClass(