title: Why there are two separate xml files - <extension>-beans.xml & <extension>-spring.xml in Hybris?
body: <p>I am new to Hybris and was little confused about the structure of an extension in it.
  Whenever we create any extension, it contains two XML files :
     -beans.xml and -spring.xml</p>
  
  <p><code>&lt;extension&gt;-beans.xml</code> file contains definition for beans and their attributes or in other words, the DTOs.</p>
  
  <p><code>&lt;extension&gt;-spring.xml</code> also contains definition for some beans and their attributes.</p>
  
  <p>This is what I understood so far. Please correct me if I am wrong.</p>
  
  <p>When we can define beans in <code>spring.xml</code>, why there is a need for another XML file "<code>beans.xml</code>" ?</p>
  
  <p>Please provide some clarification on this.
  Thanks.</p>