class XMPPNotification implements NotificationMethods {

    void sendDirectMessage (Message msg,
                            EntityBareJid jid) throws InterruptedException, IOException, SmackException, XMPPException, KeyManagementException, NoSuchAlgorithmException {
        AbstractXMPPConnection connection = getConnection();
        Chat chat = getSimpleUserChat(connection, jid);
        msg.setType(Message.Type.normal);
        chat.send(msg);
        connection.disconnect();
    }

    @Autowired public  XMPPNotification();

}