Java adaptation of WhatsApp API