Using command class in xmpp service