Bounce JavaAction code on a trampoline

By avoiding context switches we improve performance for Java actions.
Merge pull request #2615 from richdougherty/java-action-trampoline

Bounce JavaAction code on a trampoline