}
@Override
public void generateResponse(Event event) {
if (event instanceof ProjectOverviewEvent) {
ProjectOverviewEvent re = (ProjectOverviewEvent)event;
ProjectOverview po = re.getEventObject();
for (User user : po.getWatchers()) {
Alert a = new DefaultAlert(user);
a.setAlertTitle("Primary analysis for project " + po.getProject().getAlias() + "(" + po.getProject().getName() + ")");
a.setAlertText("The primary analysis related to this Project has completed: "+po.getProject().getAlias()+" ("+event.getEventMessage()+"). Please view Project " +po.getProject().getProjectId() + " in MISO for more information");