Fixes Java API to work with the new tryAccept API
Merge pull request #5 from arielscarpinelli/upstream_master

Fixes Java API to work with the new tryAccept API