Wrap actual river publish in separate method for easy testing.