Bounce JavaAction code on a trampoline

By avoiding context switches we improve performance for Java actions.