Program: 90746
Project: 90746
Buggy source:
/** 
 * Gets the web.xml servlet record for PortletServlet from portlet.xml data
 * @param context Context name
 * @param portletData Data from portlet.xml
 * @return The servlet record
 */
private String getServletRecord(String context,PortletDD portletData){
  StringBuffer record=new StringBuffer();
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + portletData.getPortletName() + "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + portletData.getPortletName() + "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + context + "String_Node_Str"+ portletData.getPortletName()+ "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + portletData.getPortletClass() + "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  String securityRef=getSecurityRoleRefRecord(context,portletData);
  if (securityRef != null && !securityRef.equals("String_Node_Str")) {
    record.append(securityRef);
  }
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  return record.toString();
}

Fixed version (ground truth):
/** 
 * Gets the web.xml servlet record for PortletServlet from portlet.xml data
 * @param context Context name
 * @param portletData Data from portlet.xml
 * @return
 */
private String getServletRecord(String context,PortletDD portletData){
  StringBuffer record=new StringBuffer();
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + portletData.getPortletName() + "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + portletData.getPortletName() + "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + context + "String_Node_Str"+ portletData.getPortletName()+ "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  record.append("String_Node_Str" + portletData.getPortletClass() + "String_Node_Str"+ PlutoAdminConstants.LS);
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  String securityRef=getSecurityRoleRefRecord(context,portletData);
  if (securityRef != null && !securityRef.equals("String_Node_Str")) {
    record.append(securityRef);
  }
  record.append("String_Node_Str" + PlutoAdminConstants.LS);
  return record.toString();
}