ClassLoader classLoader = null;
ObjectInputStream ois = null;
SipSessionManager manager
= this.getSipSessionManager();
Container container = manager.getContext();
IOUtilsCaller utilsCaller = null;
bais = new ByteArrayInputStream(state);
bis = new BufferedInputStream(bais);
if(isReplicationCompressionEnabled()) {
is = new GZIPInputStream(bis);
} else {
is = bis;
}
if(_logger.isLoggable(Level.FINEST)) {
_logger.finest("loaded session from replicationstore, length = "+state.length);
}
if (container != null) {
loader = container.getLoader();
}
if (loader != null) {
classLoader = loader.getClassLoader();
}
if (classLoader != null) {
if( (utilsCaller = ReplicationUtil.getWebUtilsCaller()) != null) {
try {
ois = utilsCaller.createObjectInputStream(is, true, classLoader);
} catch (Exception ex) {}
}
}
if (ois == null) {
ois = new ObjectInputStream(is);