If file exists with same name then it will update the file with new version.
For register bean Class in service-context.xml file
<bean id="autoVersionByNameBehaviour" class="test.demoamp.AutoVersionByNameBehaviour" init-method="init">
<property name=&qu...