JavaSerializer serializer = new JavaSerializer("JavaSerializerTest")
{
@Override
protected ObjectOutputStream newObjectOutputStream(OutputStream out) throws IOException
{
IObjectChecker checker = new NotDetachedModelChecker();
return new CheckingObjectOutputStream(out, checker);
}
};
IModel<String> model = new NotDetachedModel();