OMElement response = sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "getAttachments");
Iterator<?> i = response.getChildElements();
ArrayList<Attachment> attachments = new ArrayList<Attachment>();
while (i.hasNext()) {
OMElement attachmentElement = (OMElement) i.next();
Attachment attachment = new AttachmentUnmarshaller().unmarshalAttachment(attachmentElement);
attachments.add(attachment);
}
return attachments.toArray(new Attachment[] {});
} catch (InvalidInputFormatException e) {