I created an UML profile with Papyrus, and now I have a model.profile.uml file with the metamodel, and an instance of this metamodel in instance.uml.

Now I'd like to generate code from it using Acceleo. Can I somehow import the meta-model into a template? I already tried to reference it via "platform:/resource/path_to_the_profile", but it keeps telling me that the metamodel couldn't be resolved.

Do I have to use the standard UML2 metamodel instead and use UML APIs, like getAppliedStereotypes(), instead?

Thanks in advance,
Jay

EDIT
Sorry for the double post, my connection lagged and I hit the submit button twice.