[Java]: Fix for supporting XSD validation.