[issue #45] Better java integration
Merge pull request #48 from dim-s/issue-45/better-java-integration

[issue #45] Better java integration