public ObjectOutputStream createObjectOutputStream(
final OutputStream os,
final boolean replaceObject) throws IOException {
return IOUtils.createObjectOutputStream(os, replaceObject,
new NonSerializableObjectHandler() {
public Object handleNonSerializableObject(Object obj) {
return obj;
}
}
);