Made first sample app call next()

It seems appropriate to have the first sample app call next() since some
features, such as the auditLogger, requires this to work.
Merge pull request #561 from gabrielf/docs/sample-application-codestyle

Made first sample app call next()