}
}
public static <T> T readObjectQuietly(final InputStream is, final ClassLoader cl) {
try {
final ObjectInputStream ois = new CustomObjectInputStream(is, cl);
return (T) ois.readObject();
} catch (IOException ioe) {
IOUtils.closeQuietly(is);
throw new IllegalStateException(ioe);
} catch (ClassNotFoundException ce) {
IOUtils.closeQuietly(is);