Program: 89439
Project: 89439
Buggy source:
@Override public Map<String,Object> executeImpl(WebScriptRequest req,Status status,Cache cache){
  boolean importData=false;
  if (req.getParameter(ARG_IMPORT) != null) {
    importData=Boolean.parseBoolean(req.getParameter(ARG_IMPORT));
  }
  String siteName=RmSiteType.DEFAULT_SITE_NAME;
  if (req.getParameter(ARG_SITE_NAME) != null) {
    siteName=req.getParameter(ARG_SITE_NAME);
  }
  if (importData) {
    SiteInfo site=siteService.getSite(siteName);
    if (site == null) {
      throw new AlfrescoRuntimeException("String_Node_Str" + siteName);
    }
    NodeRef filePlan=siteService.getContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY);
    if (filePlan == null) {
      filePlan=siteService.createContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY,TYPE_FILE_PLAN,null);
    }
    InputStream is=BootstrapTestDataGet.class.getClassLoader().getResourceAsStream(XML_IMPORT);
    if (is == null) {
      throw new AlfrescoRuntimeException("String_Node_Str");
    }
    Reader viewReader=null;
    try {
      viewReader=new InputStreamReader(is,charsetName);
    }
 catch (    UnsupportedEncodingException error) {
      throw new AlfrescoRuntimeException("String_Node_Str" + charsetName + "String_Node_Str");
    }
    Location location=new Location(filePlan);
    importerService.importView(viewReader,location,null,null);
  }
  BootstrapTestDataGet.patchLoadedData(searchService,nodeService,recordsManagementService,recordsManagementActionService,permissionService,authorityService,recordsManagementSecurityService,recordsManagementSearchBehaviour,dispositionService,recordFolderService);
  Map<String,Object> model=new HashMap<String,Object>(1,1.0f);
  model.put("String_Node_Str",true);
  return model;
}

Fixed version (ground truth):
@Override public Map<String,Object> executeImpl(WebScriptRequest req,Status status,Cache cache){
  boolean importData=false;
  if (req.getParameter(ARG_IMPORT) != null) {
    importData=Boolean.parseBoolean(req.getParameter(ARG_IMPORT));
  }
  String siteName=RmSiteType.DEFAULT_SITE_NAME;
  if (req.getParameter(ARG_SITE_NAME) != null) {
    siteName=req.getParameter(ARG_SITE_NAME);
  }
  if (importData) {
    SiteInfo site=siteService.getSite(siteName);
    if (site == null) {
      throw new AlfrescoRuntimeException("String_Node_Str" + siteName);
    }
    NodeRef filePlan=siteService.getContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY);
    if (filePlan == null) {
      filePlan=siteService.createContainer(siteName,RmSiteType.COMPONENT_DOCUMENT_LIBRARY,TYPE_FILE_PLAN,null);
    }
    InputStream is=BootstrapTestDataGet.class.getClassLoader().getResourceAsStream(XML_IMPORT);
    if (is == null) {
      throw new AlfrescoRuntimeException("String_Node_Str");
    }
    Reader viewReader=null;
    try {
      viewReader=new InputStreamReader(is,charsetName);
    }
 catch (    UnsupportedEncodingException error) {
      throw new AlfrescoRuntimeException("String_Node_Str" + charsetName + "String_Node_Str",error);
    }
    Location location=new Location(filePlan);
    importerService.importView(viewReader,location,null,null);
  }
  BootstrapTestDataGet.patchLoadedData(searchService,nodeService,recordsManagementService,recordsManagementActionService,permissionService,authorityService,recordsManagementSecurityService,recordsManagementSearchBehaviour,dispositionService,recordFolderService);
  Map<String,Object> model=new HashMap<String,Object>(1,1.0f);
  model.put("String_Node_Str",true);
  return model;
}