SDK transfert data from gateway to perspective

Thank you @mazeyrat!
I am able to import the com.inductiveautomation.perspective.gateway package.
I follow the code snippet of @PGriffith, then when I install the module the following error occurs:

java.lang.NoClassDefFoundError: com/inductiveautomation/perspective/gateway/api/PerspectiveContext

It seems the module is not able to interact with the Perspective context in the startup phase.
Any suggestion will be appreciated.

Thank you.