Merge pull request #1081 from alxdarksage/develop

One more domain-related addition to Java client.
Merge pull request #1093 from alxdarksage/develop

Fixing test.