Program: 89132
Project: 89132
Buggy source:
/** 
 * @see org.springframework.extensions.webscripts.DeclarativeWebScript#executeImpl(org.springframework.extensions.webscripts.WebScriptRequest,org.springframework.extensions.webscripts.Status,org.springframework.extensions.webscripts.Cache)
 */
@Override protected Map<String,Object> executeImpl(WebScriptRequest req,Status status,Cache cache){
  Map<String,Object> model=new HashMap<String,Object>(1,1.0f);
  try {
    String dataSetId=req.getServiceMatch().getTemplateVars().get(ARG_DATA_SET_ID);
    if (StringUtils.isBlank(dataSetId)) {
      throw new WebScriptException(Status.STATUS_BAD_REQUEST,"String_Node_Str");
    }
    if (!dataSetService.existsDataSet(dataSetId)) {
      throw new WebScriptException(Status.STATUS_NOT_FOUND,"String_Node_Str" + dataSetId + "String_Node_Str"+ "String_Node_Str");
    }
    String siteName=req.getParameter(ARG_SITE_NAME);
    if (StringUtils.isBlank(siteName)) {
      siteName=RmSiteType.DEFAULT_SITE_NAME;
    }
    if (siteService.getSite(siteName) == null) {
      throw new WebScriptException(Status.STATUS_BAD_REQUEST,"String_Node_Str" + siteName + "String_Node_Str");
    }
    NodeRef filePlan=siteService.getContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY);
    if (filePlan == null) {
      filePlan=siteService.createContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY,TYPE_FILE_PLAN,null);
    }
    dataSetService.loadDataSet(filePlan,dataSetId);
    model.put("String_Node_Str",true);
    model.put("String_Node_Str","String_Node_Str");
  }
 catch (  Exception ex) {
    model.put("String_Node_Str",false);
    model.put("String_Node_Str",ex.getMessage());
    logger.error(ExceptionUtils.getFullStackTrace(ex));
  }
  return model;
}

Fixed version (ground truth):
/** 
 * @see org.springframework.extensions.webscripts.DeclarativeWebScript#executeImpl(org.springframework.extensions.webscripts.WebScriptRequest,org.springframework.extensions.webscripts.Status,org.springframework.extensions.webscripts.Cache)
 */
@Override protected Map<String,Object> executeImpl(WebScriptRequest req,Status status,Cache cache){
  Map<String,Object> model=new HashMap<String,Object>(1,1.0f);
  try {
    String dataSetId=req.getServiceMatch().getTemplateVars().get(ARG_DATA_SET_ID);
    if (StringUtils.isBlank(dataSetId)) {
      throw new WebScriptException(Status.STATUS_BAD_REQUEST,"String_Node_Str");
    }
    if (!dataSetService.existsDataSet(dataSetId)) {
      throw new WebScriptException(Status.STATUS_NOT_FOUND,"String_Node_Str" + dataSetId + "String_Node_Str"+ "String_Node_Str");
    }
    String siteName=req.getParameter(ARG_SITE_NAME);
    if (StringUtils.isBlank(siteName)) {
      siteName=RmSiteType.DEFAULT_SITE_NAME;
    }
    if (siteService.getSite(siteName) == null) {
      throw new WebScriptException(Status.STATUS_BAD_REQUEST,"String_Node_Str" + siteName + "String_Node_Str");
    }
    NodeRef filePlan=siteService.getContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY);
    if (filePlan == null) {
      filePlan=siteService.createContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY,TYPE_FILE_PLAN,null);
    }
    dataSetService.loadDataSet(filePlan,dataSetId);
    model.put("String_Node_Str",true);
    model.put("String_Node_Str","String_Node_Str");
  }
 catch (  Exception ex) {
    model.put("String_Node_Str",false);
    model.put("String_Node_Str",ex.getMessage());
    logger.error("String_Node_Str" + ex);
  }
  return model;
}