Program: 189184
Project: 189184
Buggy source:
public void layout(){
  super.layout();
  page=this;
  add(CSSPackageResource.getHeaderContribution(getClass(),"String_Node_Str"));
  String name=getPageParameters().getString("String_Node_Str");
  group=dao.find(name,getProject());
  if (group == null) {
    notFoundError();
    return;
  }
  addLinks(getLinks(group));
  addDetails();
  List<Comment> commentList=new LinkedList<Comment>();
  commentList.addAll(group.getComments());
  Collections.sort(commentList,new Comparator<Comment>(){
    public int compare(    Comment comment1,    Comment comment2){
      return comment1.getCreated().compareTo(comment2.getCreated());
    }
  }
);
  add(new ListView<Comment>("String_Node_Str",commentList){
    protected void populateItem(    ListItem<Comment> listItem){
      Comment comment=listItem.getModelObject();
      listItem.add(new Image("String_Node_Str",new ResourceReference(HeadsUpPage.class,"String_Node_Str")));
      listItem.add(new Label("String_Node_Str",comment.getUser().getFullnameOrUsername()));
      listItem.add(new Label("String_Node_Str",new FormattedDateModel(comment.getCreated(),((HeadsUpSession)getSession()).getTimeZone())));
      listItem.add(new Label("String_Node_Str",new MarkedUpTextModel(comment.getComment(),getProject())).setEscapeModelStrings(false));
    }
  }
);
  filter=new MilestoneFilterPanel("String_Node_Str",getSession().getUser()){
    @Override public Criterion getCompletedCriterion(){
      Criterion c=super.getCompletedCriterion();
      if (c == null) {
        c=Restrictions.eq("String_Node_Str",group);
      }
 else {
        c=Restrictions.and(c,Restrictions.eq("String_Node_Str",group));
      }
      return c;
    }
  }
;
  if (group.isCompleted()) {
    filter.setFilters(0,false,true);
  }
 else {
    filter.setFilters(0,true,false);
  }
  add(filter);
  boolean hideProject=true;
  final SortableEntityProvider<Milestone> provider;
  if (getProject().equals(StoredProject.getDefault())) {
    provider=new MilestoneProvider(filter);
    hideProject=false;
  }
 else {
    provider=new MilestoneProvider(getProject(),filter);
  }
  add(new MilestoneListPanel("String_Node_Str",provider,this,hideProject));
  boolean timeEnabled=Boolean.parseBoolean(group.getProject().getConfigurationValue(StoredProject.CONFIGURATION_TIMETRACKING_ENABLED)) && group.hasValidTimePeriod();
  add(new Image("String_Node_Str",new ResourceReference("String_Node_Str"),getPageParameters()).setVisible(timeEnabled));
  add(new WorkRemainingTable("String_Node_Str",group).setVisible(timeEnabled));
  ValueMap params=new ValueMap();
  params.put("String_Node_Str",getProject().getId());
  params.put("String_Node_Str",group.getName());
  params.put("String_Node_Str",true);
  add(new ResourceLink("String_Node_Str",new ResourceReference("String_Node_Str"),params).setVisible(timeEnabled));
}

Fixed version (ground truth):
public void layout(){
  super.layout();
  page=this;
  add(CSSPackageResource.getHeaderContribution(getClass(),"String_Node_Str"));
  String name=getPageParameters().getString("String_Node_Str");
  group=dao.find(name,getProject());
  if (group == null) {
    notFoundError();
    return;
  }
  addLinks(getLinks(group));
  addDetails();
  List<Comment> commentList=new LinkedList<Comment>();
  commentList.addAll(group.getComments());
  Collections.sort(commentList,new Comparator<Comment>(){
    public int compare(    Comment comment1,    Comment comment2){
      return comment1.getCreated().compareTo(comment2.getCreated());
    }
  }
);
  add(new ListView<Comment>("String_Node_Str",commentList){
    protected void populateItem(    ListItem<Comment> listItem){
      Comment comment=listItem.getModelObject();
      listItem.add(new Image("String_Node_Str",new ResourceReference(HeadsUpPage.class,"String_Node_Str")));
      listItem.add(new Label("String_Node_Str",comment.getUser().getFullnameOrUsername()));
      listItem.add(new Label("String_Node_Str",new FormattedDateModel(comment.getCreated(),((HeadsUpSession)getSession()).getTimeZone())));
      listItem.add(new Label("String_Node_Str",new MarkedUpTextModel(comment.getComment(),getProject())).setEscapeModelStrings(false));
    }
  }
);
  filter=new MilestoneFilterPanel("String_Node_Str",getSession().getUser()){
    @Override public Criterion getCompletedCriterion(){
      Criterion c=super.getCompletedCriterion();
      if (c == null) {
        c=Restrictions.eq("String_Node_Str",group);
      }
 else {
        c=Restrictions.and(c,Restrictions.eq("String_Node_Str",group));
      }
      return c;
    }
  }
;
  if (group.isCompleted()) {
    filter.setFilters(0,false,true);
  }
 else {
    filter.setFilters(0,true,false);
  }
  add(filter);
  boolean hideProject=true;
  final SortableEntityProvider<Milestone> provider;
  if (getProject().equals(StoredProject.getDefault())) {
    provider=new MilestoneProvider(filter);
    hideProject=false;
  }
 else {
    provider=new MilestoneProvider(getProject(),filter);
  }
  add(new MilestoneListPanel("String_Node_Str",provider,this,hideProject,group));
  boolean timeEnabled=Boolean.parseBoolean(group.getProject().getConfigurationValue(StoredProject.CONFIGURATION_TIMETRACKING_ENABLED)) && group.hasValidTimePeriod();
  add(new Image("String_Node_Str",new ResourceReference("String_Node_Str"),getPageParameters()).setVisible(timeEnabled));
  add(new WorkRemainingTable("String_Node_Str",group).setVisible(timeEnabled));
  ValueMap params=new ValueMap();
  params.put("String_Node_Str",getProject().getId());
  params.put("String_Node_Str",group.getName());
  params.put("String_Node_Str",true);
  add(new ResourceLink("String_Node_Str",new ResourceReference("String_Node_Str"),params).setVisible(timeEnabled));
}