add utility method to protocol utils
fix bug: entity pager next bug #727
Merge pull request #806 from dennishendriksen/master

Fix bug: entity pager next bug #727