Bug 581523: [Model2Doc] we must use the graphicalContext to attach the DocumentTemplate to a resource -use the graphicalContext instead of the semanticContext to find the resource -fix some error between semantic and graphical context Change-Id: I2750316721e29e3739af521e9c9c7f7fc554cffc Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>