Program: 50962
Project: 50962
Buggy source:
/** 
 * Updates a project based on the given project information
 * @return Project based on the given information
 */
public Project updateProject(ProjectInfo delta,ProjectInfo projectInfo,File path,User userInfo) throws PhrescoException {
  S_LOGGER.debug("String_Node_Str");
  S_LOGGER.debug("String_Node_Str" + delta.getName());
  if (StringUtils.isEmpty(delta.getVersion())) {
    delta.setVersion(PROJECT_VERSION);
  }
  ClientResponse response=null;
  String techId=delta.getTechnology().getId();
  if (techId.equals(TechnologyTypes.PHP_DRUPAL6) || techId.equals(TechnologyTypes.PHP_DRUPAL7)) {
    excludeModule(delta);
  }
  boolean flag=!techId.equals(TechnologyTypes.JAVA_WEBSERVICE) && !techId.equals(TechnologyTypes.JAVA_STANDALONE) && !techId.equals(TechnologyTypes.ANDROID_NATIVE);
  ProjectInfo projectInfoClone=projectInfo.clone();
  updateDocument(projectInfo,path);
  response=PhrescoFrameworkFactory.getServiceManager().updateProject(delta,userInfo);
  if (response.getStatus() == 401) {
    throw new PhrescoException("String_Node_Str");
  }
 else   if (flag) {
    if (response.getStatus() != 200) {
      throw new PhrescoException("String_Node_Str");
    }
  }
  if (techId.equals(TechnologyTypes.JAVA_WEBSERVICE)) {
    createSqlFolder(delta,path);
  }
  updatePomProject(delta,projectInfoClone);
  try {
    if (flag) {
      extractArchive(response,delta);
    }
    ProjectUtils.updateProjectInfo(delta,path);
    updateProjectPOM(projectInfo);
  }
 catch (  FileNotFoundException e) {
    throw new PhrescoException(e);
  }
catch (  IOException e) {
    throw new PhrescoException(e);
  }
  return new ProjectImpl(delta);
}

Fixed version (ground truth):
/** 
 * Updates a project based on the given project information
 * @return Project based on the given information
 */
public Project updateProject(ProjectInfo delta,ProjectInfo projectInfo,File path,User userInfo) throws PhrescoException {
  S_LOGGER.debug("String_Node_Str");
  S_LOGGER.debug("String_Node_Str" + delta.getName());
  if (StringUtils.isEmpty(delta.getVersion())) {
    delta.setVersion(PROJECT_VERSION);
  }
  ClientResponse response=null;
  String techId=delta.getTechnology().getId();
  if (techId.equals(TechnologyTypes.PHP_DRUPAL6) || techId.equals(TechnologyTypes.PHP_DRUPAL7)) {
    excludeModule(delta);
  }
  boolean flag=!techId.equals(TechnologyTypes.JAVA_WEBSERVICE) && !techId.equals(TechnologyTypes.JAVA_STANDALONE) && !techId.equals(TechnologyTypes.ANDROID_NATIVE);
  updateDocument(projectInfo,path);
  response=PhrescoFrameworkFactory.getServiceManager().updateProject(delta,userInfo);
  if (response.getStatus() == 401) {
    throw new PhrescoException("String_Node_Str");
  }
 else   if (flag) {
    if (response.getStatus() != 200) {
      throw new PhrescoException("String_Node_Str");
    }
  }
  if (techId.equals(TechnologyTypes.JAVA_WEBSERVICE)) {
    createSqlFolder(delta,path);
  }
  updatePomProject(delta,projectInfo);
  try {
    if (flag) {
      extractArchive(response,delta);
    }
    ProjectUtils.updateProjectInfo(projectInfo,path);
    updateProjectPOM(projectInfo);
  }
 catch (  FileNotFoundException e) {
    throw new PhrescoException(e);
  }
catch (  IOException e) {
    throw new PhrescoException(e);
  }
  return new ProjectImpl(delta);
}