if (description != null) {
metadata.setDescription(description);
}
String creationDateStr = this.expectElementValue(metadataQueue, "creationDate");
if ((creationDateStr != null) && ! ("".equals(creationDateStr))) {
metadata.setCreationDate(new XsdDateTime(creationDateStr).getTime());
}
String payloadURLStr = this.requireElementValue(rootQueue, "payloadUrl");
return new Attachment(metadata, payloadURLStr);
}