final ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader( classLoader );
try
{
final XMLDecoder decoder = new XMLDecoder( inputStream );
final Object object = decoder.readObject();
if( DEBUG )
{
monitor.returningObjectForKey(XMLFilePersistentObjectRepository.class, object, key);
}
return object;