Parse a Custom Extension from Message

I am developing an XMPP based application, where I am sending and receiving custom xml extensions on Android devices as Extension with Message stanzas. As of now they are working fine. Now I am developing a Plug-In (Offline Message Listener) for sending notifications to device from Open Fire. So is it Possible to parse the get extension from Message packets in my plug-in?

I have gone through org.xmpp.packet.PacketExtension but, not very clear of how to add it and there is no toXML, Provider implementations as like I had in Smack. Thanks in advanceā€¦