Transport Plugin - How to Create a Session?

Hi,

I would like to create a plugin to listen for Stomp connections and translate its Frames to Stanzas.

My doubt until now is how to create a session on Openfire.

The SessionManager.createClientSession method need a Connection parameter.

This connection must be between Openfire and a jabber Client. But, in this case the client doesn’t exist.I need a Session between my plugin and the Openfire server.

How must I proceed ? Create a fake connection Object, other Handler or methods ?

Any help will be appreciated.

Daniel