Added missing import in sample code

See: https://github.com/playframework/playframework/issues/1617
Fix incorrect method signature by extracting all the code.
Merge pull request #1792 from clemp6r/patch-1

Added missing import in sample code
Merge pull request #1803 from wsargent/doc-JavaActionsComposition

Fix incorrect method signature by extracting all the code.