public DiscussionThreadPresenter(ProjectId projectId) {
view = new DiscussionThreadViewImpl();
this.projectId = checkNotNull(projectId);
handlerRegistrationManager.registerHandlerToProject(projectId, NotePostedEvent.TYPE, new NotePostedHandler() {
@Override
public void handleNotePosted(NotePostedEvent event) {
refreshForNotePosted(event);
}
});