List<Object> list = cancelTarget.getAny();
for (Object cancelTargetObj : list) {
if (cancelTargetObj instanceof AssertionType) {
AssertionType assertion = (AssertionType) cancelTargetObj;
SAMLAssertionWriter samlAssertionWriter = new SAMLAssertionWriter(this.writer);
samlAssertionWriter.write(assertion);
} else if (cancelTargetObj instanceof Element) {
StaxUtil.writeDOMElement(writer, (Element) cancelTargetObj);
} else