Read field element of Message inside a plugin

I am trying to develop a plugin for pubsub in which i want to send the approve subscription notification to publisher when a subscriber has been approved by publisher itself. ( as of not openfire does not do that so i m thinking to develop a plugin )

to intercept the Message which approves the subscription is as follows

http://jabber.org/protocol/pubsub#subscribe_authorization

O65RVuUT4X7b7oy1JuD0951YWSmMA94TDuUqj585

5555/loc

user1@demo.in

1

now how can i determine that this Message element is having **pubsub#allow value set to 1 ** so that i can send the notification message to the publisher .

here is my code

private void processMessage(Message message) {

// how can i crawl to the FIELDs inside a message so that i can determine its the approval from a publisher

}