Program: 24701
Project: 24701
Buggy source:
@AllowedRoles(roles={Roles.Administrator,Roles.Acquisition_Organization_Engineer}) public GwtProject createProject(GwtProject newProject) throws SquareException {
  User acquisitionOrganizationEngineer=userDao.fetch(newProject.getAcquisitionOrganizationEngineer().getUserId());
  Project project=new Project(newProject);
  project.setAcquisitionOrganizationEngineer(acquisitionOrganizationEngineer);
  AsquareCase acase=asquareCaseDao.fetch(newProject.getCases().getId());
  project.setCases(acase);
  System.out.println("String_Node_Str" + project.getAcquisitionOrgEngineer().getId() + "String_Node_Str"+ project.getCases().getId()+ "String_Node_Str"+ project.getDateCreated()+ "String_Node_Str"+ project.getDateModified()+ "String_Node_Str"+ project.isLite()+ "String_Node_Str"+ project.getName()+ "String_Node_Str"+ project.isPrivacy()+ "String_Node_Str"+ project.isSecurity());
  projectDao.create(project);
  System.out.println("String_Node_Str");
  newProject.setId(project.getId());
  System.out.println("String_Node_Str");
  if (newProject.getCases().getId() == 3) {
    QualityAttribute qa=new QualityAttribute();
    qa.setName("String_Node_Str");
    qa.setDescription("String_Node_Str");
    System.out.println("String_Node_Str");
    qualityAttributeDao.create(qa);
    System.out.println("String_Node_Str");
    ProjectPackageAttributeRating ppar=new ProjectPackageAttributeRating();
    ProjectPackageAttributeRatingId pparid=new ProjectPackageAttributeRatingId();
    pparid.setAttributeId(qa.getId());
    pparid.setPackageId(1);
    pparid.setProjectId(project.getId());
    System.out.println("String_Node_Str" + project.getId() + "String_Node_Str"+ 1+ "String_Node_Str"+ qa.getId());
    ppar.setId(pparid);
    ppar.setProject(project);
    ppar.setSoftwarePackage(softwarePackageDao.fetch(1));
    ppar.setQualityAttribute(qa);
    ppar.setRating(0);
    projectPackageAttributeRatingDao.create(ppar);
  }
  stepBusiness.createStepsForProject(newProject);
  GwtRole role=new GwtRole();
  role.setName(ProjectRole.Acquisition_Organization_Engineer.getLabel());
  this.addUserToProject(newProject,acquisitionOrganizationEngineer.createGwtUser(),role);
  return newProject;
}

Fixed version (ground truth):
@AllowedRoles(roles={Roles.Administrator,Roles.Acquisition_Organization_Engineer}) public GwtProject createProject(GwtProject newProject) throws SquareException {
  User acquisitionOrganizationEngineer=userDao.fetch(newProject.getAcquisitionOrganizationEngineer().getUserId());
  Project project=new Project(newProject);
  project.setAcquisitionOrganizationEngineer(acquisitionOrganizationEngineer);
  AsquareCase acase=asquareCaseDao.fetch(newProject.getCases().getId());
  project.setCases(acase);
  projectDao.create(project);
  System.out.println("String_Node_Str");
  newProject.setId(project.getId());
  System.out.println("String_Node_Str");
  if (newProject.getCases().getId() == 3) {
    QualityAttribute qa=new QualityAttribute();
    qa.setName("String_Node_Str");
    qa.setDescription("String_Node_Str");
    System.out.println("String_Node_Str");
    qualityAttributeDao.create(qa);
    System.out.println("String_Node_Str");
    ProjectPackageAttributeRating ppar=new ProjectPackageAttributeRating();
    ProjectPackageAttributeRatingId pparid=new ProjectPackageAttributeRatingId();
    pparid.setAttributeId(qa.getId());
    pparid.setPackageId(1);
    pparid.setProjectId(project.getId());
    System.out.println("String_Node_Str" + project.getId() + "String_Node_Str"+ 1+ "String_Node_Str"+ qa.getId());
    ppar.setId(pparid);
    ppar.setProject(project);
    ppar.setSoftwarePackage(softwarePackageDao.fetch(1));
    ppar.setQualityAttribute(qa);
    ppar.setRating(0);
    projectPackageAttributeRatingDao.create(ppar);
  }
  stepBusiness.createStepsForProject(newProject);
  GwtRole role=new GwtRole();
  role.setName(ProjectRole.Acquisition_Organization_Engineer.getLabel());
  this.addUserToProject(newProject,acquisitionOrganizationEngineer.createGwtUser(),role);
  return newProject;
}