title: Is there any api which can convert spring batch job object to xml-based job?
body: <p>I programmatically got a Job object(instance of SimpleJob class).Then for some reason, I wanna convert this job object to job1.xml(xml-based job definition file). So that I can save the job on my hard disk. Is there any spring batch java api which can achieve this? Something like:</p>
  
  <p>SimpleJob job1 = new SimpleJob("SomeJob");</p>
  
  <p>job1.addSomeStep()... //create the details of the job</p>
  
  <p>SomeConverter(job1, "job1.xml");//then we got the job1.xml on the hard disk.</p>