Implementation of PJLink protocol in managed code