added java support
Merge pull request #5 from Kunstmaan/fix/kms-fetch_java

added java support