[SOAP-10] Fix compatibilty issue with Java 6