Serializer s;
try {
s = super.querySerializer(javaType, encodingStyleURI);
if (s instanceof ArraySerializer)
return sparseSer;
}
catch (IllegalArgumentException e) {
if (javaType != null
&& encodingStyleURI != null
&& encodingStyleURI.equals(Constants.NS_URI_SOAP_ENC)) {
if (javaType.isArray()) {
return sparseSer;
}
}
throw e;
}
return s;