title: I could not generate the formatted XML using Jaxb2Marshaller
body: <p>According to the Spring Batch document, Spring Batch could generate the formatted xml file, but I failed, all XML elements are generated in one line.</p>
  
  <p>Test steps</p>
  
  <ol>
  <li>Download spring-batch-2.1.9.RELEASE-no-dependencies</li>
  <li>Import spring-*-3.2.0.RC1.jar</li>
  <li>Import jaxb-ri-2.2.6</li>
  <li>Run org.springframework.batch.sample.iosample.XmlFunctionalTests</li>
  </ol>
  
  <p>Before running the job, I make below changes on /spring-batch-2.1.9.RELEASE-no-dependencies/spring-batch-2.1.9.RELEASE/spring-batch-samples/src/main/resources/jobs/iosample/xml.xml</p>
  
  <pre><code>&lt;bean id="itemWriter" class="org.springframework.batch.item.xml.StaxEventItemWriter"&gt;
      &lt;property name="resource" ref="outputResource" /&gt;
      &lt;property name="marshaller" ref="customerCreditMarshaller2" /&gt;
      &lt;property name="rootTagName" value="customers" /&gt;
      &lt;property name="overwriteOutput" value="true" /&gt;
  &lt;/bean&gt;
  &lt;bean id="customerCreditMarshaller2" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"&gt;
       &lt;property name="contextPaths"&gt;
           &lt;list&gt;
               &lt;value&gt;com.test.domain&lt;/value&gt;&lt;!-- the package is generated from a XSD --&gt;
           &lt;/list&gt;
     &lt;/property&gt;
     &lt;property name="marshallerProperties"&gt;
          &lt;map&gt;
             &lt;entry key="jaxb.formatted.output"&gt;&lt;value type="java.lang.Boolean"&gt;true&lt;/value&gt;&lt;/entry&gt;
          &lt;/map&gt;
     &lt;/property&gt;
  </code></pre>
  
  <p></p>