It isn't using real progress because the responsibility of doing this is left up to the AsyncTask  implementation. In our current implementation of saving a source document, we simply modify the document and let hibernate cascade the changes down to the textflow level. To provide real progress here we need to either change the implementation so that our code saves each text flow individually (and thus is able to provide progress updates), or we find a way to hook into hibernate to tell us when one has been saved (not the best option in my opinion).

Using max progress was a way to tell the "old" handlers that the process was finished. It is a line that may be removed from this implementation now, as it really has no effect on the whole process. I'll do that.