* @param isReferenceParameter whether IsReferenceParameter is true or false
*/
public static void addWSAIsReferenceParameter(XMLObject soapObject, boolean isReferenceParameter) {
if (soapObject instanceof IsReferenceParameterBearing) {
((IsReferenceParameterBearing)soapObject).setWSAIsReferenceParameter(
new XSBooleanValue(isReferenceParameter, false));
} else if (soapObject instanceof AttributeExtensibleXMLObject) {
((AttributeExtensibleXMLObject)soapObject).getUnknownAttributes()
.put(IsReferenceParameterBearing.WSA_IS_REFERENCE_PARAMETER_ATTR_NAME,
new XSBooleanValue(isReferenceParameter, false).toString());
} else {
throw new IllegalArgumentException("Specified object was neither IsReferenceParameterBearing nor AttributeExtensible");
}
}