How to get the MPK using bitcoinj and how to generate the addresses using the MPK?
I have found the way to do it:

    DeterministicKey extendedKey = wallet.getWatchingKey();
    String mpk = extendedKey.serializePubB58(wallet.getParams());