title: Acceleo transformation using a custom ecore metamodel
body: <p>First of all , i am new to the modeling features of eclipse, so the question may be trivial, but i am searching for days and haven't found an answer.</p>
  
  <p>I have created an ecore metamodel file with an ecore modeling project. The URI is this : <code>/com.auth.dotnetPSM.PSMmodel/model/PSMMetamodel.ecore</code></p>
  
  <p>I have also generated (via an ATL transformation) an xmi model file. the first element is like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;RESTfulServicePSM
      xmi:version="2.0" 
      xmlns:xmi="http://www.omg.org/XMI" 
      xmlns="/com.auth.dotnetPSM.PSMmodel/model/PSMMetamodel.ecore" 
      name="WSAT"&gt;
  </code></pre>
  
  <p>In the ATL project everything is working as expected.</p>
  
  <p>Now i need to create an M2T transformation using Acceleo. So for starters, i created two modules, a main :</p>
  
  <pre><code>[comment encoding = UTF-8 /]
  
  [module PsmToCode('/com.auth.dotnetPSM.PSMmodel/model/PSMMetamodel.ecore')]
  [import org::eclipse::acceleo::psm2code::files::ResourceModelClasses/]
  
  [template public PsmToCode(aRESTfulServicePSM : RESTfulServicePSM)]
  [comment @main/]
  [for ( aCSharpResourceModel : CSharpResourceModel | aRESTfulServicePSM.hasCSharpRModel)]
          [aCSharpResourceModel.generateResourceModelClasses()/]
   [/for]
  [/template]
  </code></pre>
  
  <p>and another one:</p>
  
  <pre><code>[comment encoding = UTF-8 /]
  [module ResourceModelClasses('/com.auth.dotnetPSM.PSMmodel/model/PSMMetamodel.ecore')]
  
  [template public generateResourceModelClasses(aCSharpResourceModel : CSharpResourceModel)]
  
  [file (aCSharpResourceModel.parentName.toUpperFirst().concat('.cs'), false, 'UTF-8')]
  
  [/file]
  [/template]
  </code></pre>
  
  <p>When i run this, i get a <code>Package with uri '/com.auth.dotnetPSM.PSMmodel/model/PSMMetamodel.ecore' not found. (file:/H:/Users/doumas/workspace/PIM2PSM/WSATPSM.xmi, 6, 15)</code> exception. What am i doing wrong?</p>
  
  <p>Thanks in advance.</p>