[Java]: Fix for supporting XSD validation.
Merge branch 'master' into portability (changes for #182 merged into #181 changes)