if (trace) log.trace("Integrating state for region " + fqn);
//ClassLoader cl = (marshaller == null) ? null : marshaller.getClassLoader(fqnS);
Fqn integrationRoot = Fqn.fromRelativeFqn(integrationBase, fqn);
byte[] stateBuffer = entry.getValue();
MarshalledValueInputStream in = null;
try
{
ByteArrayInputStream bais = new ByteArrayInputStream(stateBuffer);
in = new MarshalledValueInputStream(bais);
//stateMgr.setState(in, integrationRoot, cl);
stateTransferManager.setState(in, integrationRoot);
}
catch (Throwable t)
{
if (t instanceof CacheException)
{
//excepected/common and can happen due to inactive regions and so on
log.debug(t);
}
else
{
//something has gone wrong
log.error("State for fqn " + fqn
+ " could not be transferred to a buddy at "
+ cache.getLocalAddress(), t);
}
}
finally
{
if (in != null)
{
in.close();
}
}
}
else
{