addAttribute("id", "tpd6", myAttrs);
textElement("duration", myAttrs, String.valueOf(t.getDuration().getLength()), handler);
final List attachments = t.getAttachments();
for (int i=0; i<attachments.size(); i++) {
Document nextAttachment = (Document)attachments.get(i);
URI nextUri = nextAttachment.getURI();
if (nextUri!=null) {
String strUri = URLDecoder.decode(nextUri.toString(), "utf-8");
if (strUri.startsWith("file:")) {
if (strUri.endsWith("/")) {
strUri = strUri.replaceAll("/+$", "");
}
int lastSlash = strUri.lastIndexOf('/');
if (lastSlash >= 0) {
addAttribute("display-name", strUri.substring(lastSlash+1), myAttrs);
}
}
textElement("attachment", myAttrs, strUri, handler);
}
else {
textElement("attachment", myAttrs, nextAttachment.getPath(), handler);
}
}
{
ProjectResource coordinator = t.getAssignmentCollection().getCoordinator();
if (coordinator!=null) {