// newBlip.getDocument().delete();
}
@Override
public void onDocumentChanged(DocumentChangedEvent event) {
Blip blip = event.getBlip();
Wavelet wavelet = event.getWavelet();
if (wavelet.getDataDocuments().contains("issue-tracker-project")) {
return;
}
Annotations annotations = event.getBlip().getAnnotations();
Iterator<Annotation> iterator = annotations.iterator();
while (iterator.hasNext()) {
Annotation annotation = iterator.next();
String name = annotation.getName();
String value = annotation.getValue();
if (name.equals(this.HIGHLIGHT_ANNOTATION_NAME) && value.equals("new")) {
// Check for authsub token first
String user = event.getModifiedBy();
UserInfo userInfo = util.getUserInfo(user);
if (userInfo == null) {
appendAuthSubGadget(blip, user);
} else {
BlipContentRefs blipContentRefs = blip.range(annotation.getRange().getStart(), annotation
.getRange().getEnd());
blipContentRefs.annotate(this.HIGHLIGHT_ANNOTATION_NAME, "done");
Set<String> participants = new HashSet<String>();
participants.add(event.getModifiedBy());