public static void saveKOML(File saveTo,Object model,Instances header) throws Exception {
  Vector<Object> v=new Vector<Object>();
  v.add(model);
  if (header != null) {
    v.add(header);
  }
  v.trimToSize();
  KOML.write(saveTo.getAbsolutePath(),v);
}

public static void saveKOML ( File saveTo , Object model , Instances header ) throws Exception { Vector < Object > v = new Vector < Object > ( ) ; v . add ( model ) ; if ( header != null ) { v . add ( header ) ; } v . trimToSize ( ) ; KOML . write ( saveTo . getAbsolutePath ( ) , v ) ; }
save a model in koml deep object serialized xml form .
