Add tests (Java bindings)
Fix bug in 'domainMethod' that swallows invocation target exceptions.
Make domainMethod list both declared methods and then methods.
Change method signature of domainMethods so that its implementations
become able to throw exceptions.
Organize import statements.