title: How to merge EMF models programmatically in Java?
body: <p>Is there a way to combine multiple Ecore models (2 or more) in a single Ecore model programmatically in Java? With all models conform to the same metamodel.</p>
  
  <p>In:</p>
  
  <pre><code>Model1 conforming to metamodelX
  Model2 conforming to metamodelX
  model3 conforming to metamodelX
  model4 conforming to metamodelX
  model5 conforming to metamodelX
  </code></pre>
  
  <p>Out:</p>
  
  <pre><code>modelOut conforming to metamodelX and merge of Model1, Model2, model3, model4, model5 ...
  </code></pre>