Try modifying Related Diagrams property for the NodeMapping of node representing
"blackbox" A element on A diagram - select Canvas from this .gmfmap model
and try generatig gmfgen model and code with these settings. See Ecore diagram
editor/Node Mapping for EPackage element there as an example.