Zanata spa

This will become a very expensive query (hibernate n+1). If you are just after id and state combination, you should use org.zanata.dao.TextFlowDAO#getNavigationByDocumentId instead