Fixes MethodNotFoundException
Merge pull request #52 from vmorarian/java-type

Fixes NoSuchMethodException