Program: 86996
Project: 86996
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public void setParameters(Map args,ICS ics) throws ReferenceException {
  if (getSatelliteContext() == SatelliteContext.SATELLITE_SERVER && isGetTemplateUrl(args)) {
    AssetId id=new AssetIdImpl((String)args.get("String_Node_Str"),Long.parseLong((String)args.get("String_Node_Str")));
    VirtualWebrootDao vwDao=new VirtualWebrootDao(ics);
    WraCoreFieldDao wraDao=new WraCoreFieldDao(ics);
    String currentEnvironment=vwDao.getVirtualWebrootEnvironment();
    if (currentEnvironment != null && wraDao.isWebReferenceable(id)) {
      WebReferenceableAsset wra=wraDao.getWra(id);
      VirtualWebroot vw=vwDao.lookupVirtualWebrootForAsset(wra);
      if (vw != null) {
        args.put("String_Node_Str",vw.getEnvironmentVirtualWebroot());
        args.put("String_Node_Str",wra.getPath().substring(vw.getMasterVirtualWebroot().length() + 1));
        String pagename=ics.GetProperty(WraPathAssembler.DISPATCHER_PROPNAME,"String_Node_Str",true);
        if (!goodString(pagename)) {
          pagename="String_Node_Str";
        }
        if (args.get(PubConstants.WRAPPERPAGE) != null)         args.put(PubConstants.WRAPPERPAGE,pagename);
 else         args.put("String_Node_Str",pagename);
      }
 else {
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + wra.getPath() + "String_Node_Str"+ currentEnvironment);
        }
      }
    }
 else {
      if (log.isDebugEnabled()) {
        if (currentEnvironment == null) {
          log.debug("String_Node_Str");
        }
 else {
          log.debug("String_Node_Str" + id + "String_Node_Str");
        }
      }
    }
  }
 else {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + getSatelliteContext() + "String_Node_Str"+ getAppType()+ "String_Node_Str"+ args);
    }
  }
  super.setParameters(args,ics);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public void setParameters(Map args,ICS ics) throws ReferenceException {
  if (getSatelliteContext() == SatelliteContext.SATELLITE_SERVER && isGetTemplateUrl(args)) {
    AssetId id=new AssetIdImpl((String)args.get("String_Node_Str"),Long.parseLong((String)args.get("String_Node_Str")));
    VirtualWebrootDao vwDao=new VirtualWebrootDao(ics);
    WraCoreFieldDao wraDao=new WraCoreFieldDao(ics);
    String currentEnvironment=vwDao.getVirtualWebrootEnvironment();
    if (currentEnvironment != null && wraDao.isWebReferenceable(id)) {
      WebReferenceableAsset wra=wraDao.getWra(id);
      VirtualWebroot vw=vwDao.lookupVirtualWebrootForAsset(wra);
      if (vw != null) {
        args.put("String_Node_Str",vw.getEnvironmentVirtualWebroot());
        args.put("String_Node_Str",wra.getPath().substring(vw.getMasterVirtualWebroot().length() + 1));
        String pagename=ics.GetProperty(WraPathAssembler.DISPATCHER_PROPNAME,"String_Node_Str",true);
        if (!goodString(pagename)) {
          pagename="String_Node_Str";
        }
        if (args.get(PubConstants.WRAPPERPAGE) != null)         args.put(PubConstants.WRAPPERPAGE,pagename);
 else         args.put("String_Node_Str",pagename);
      }
 else {
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + wra.getPath() + "String_Node_Str"+ currentEnvironment);
        }
      }
    }
 else {
      if (log.isDebugEnabled()) {
        if (currentEnvironment == null) {
          log.debug("String_Node_Str");
        }
 else {
          log.debug("String_Node_Str" + id + "String_Node_Str");
        }
      }
    }
  }
 else {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + getSatelliteContext() + "String_Node_Str"+ args);
    }
  }
  super.setParameters(args,ics);
}