Smack 4.2.0-beta2 retrieving chat history

Dear everybody,

I have a trouble with retrieving chat history by class MamManager. How i can get the latest messages.