Improve robustness when using RJB by explicitly stating expected Java constructor signature.