Fix incorrect method signature by extracting all the code.
Merge pull request #1803 from wsargent/doc-JavaActionsComposition

Fix incorrect method signature by extracting all the code.