public void writeJobDataFile(String version) throws Exception {
  Object obj=getTargetObject();
  FileOutputStream fos=new FileOutputStream(getSerializedFileName(version,obj.getClass()));
  ObjectOutputStream oos=new ObjectOutputStream(fos);
  oos.writeObject(obj);
  oos.flush();
  fos.close();
  oos.close();
}

public void writeJobDataFile ( String version ) throws Exception { Object obj = getTargetObject ( ) ; FileOutputStream fos = new FileOutputStream ( getSerializedFileName ( version , obj . getClass ( ) ) ) ; ObjectOutputStream oos = new ObjectOutputStream ( fos ) ; oos . writeObject ( obj ) ; oos . flush ( ) ; fos . close ( ) ; oos . close ( ) ; }
use this method in the future to generate other versions of of the serialized object file .
