byte[] content = load(dirName, name);
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "loadobj, after load call");
ByteArrayInputStream bis = new ByteArrayInputStream(content);
ObjectInputStream ois = new ObjectInputStream(bis);
try {
Object obj = ois.readObject();
return obj;
} catch (Exception e) {
String exceptionString = e.toString();
if (exceptionString.indexOf("KNOWN PROBLEM") == -1)
{
e.printStackTrace();
}
throw new IOException(e.getMessage());
} finally {
ois.close();
bis.close();
}
}