Program: 28412
Project: 28412
Buggy source:
/** 
 * Creates new WebBundleNode 
 */
protected WebCommonNode(){
  super();
  registerElementHandler(new XMLElement(TagNames.ENVIRONMENT_PROPERTY),EnvEntryNode.class);
  registerElementHandler(new XMLElement(TagNames.EJB_REFERENCE),EjbReferenceNode.class);
  registerElementHandler(new XMLElement(TagNames.EJB_LOCAL_REFERENCE),EjbLocalReferenceNode.class);
  JndiEnvRefNode serviceRefNode=habitat.getService(JndiEnvRefNode.class,WebServicesTagNames.SERVICE_REF);
  if (serviceRefNode != null) {
    registerElementHandler(new XMLElement(WebServicesTagNames.SERVICE_REF),serviceRefNode.getClass(),"String_Node_Str");
  }
  registerElementHandler(new XMLElement(TagNames.RESOURCE_REFERENCE),ResourceRefNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.RESOURCE_ENV_REFERENCE),ResourceEnvRefNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.MESSAGE_DESTINATION_REFERENCE),MessageDestinationRefNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.PERSISTENCE_CONTEXT_REF),EntityManagerReferenceNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.PERSISTENCE_UNIT_REF),EntityManagerFactoryReferenceNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.ROLE),SecurityRoleNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.SERVLET),ServletNode.class);
  registerElementHandler(new XMLElement(WebTagNames.SERVLET_MAPPING),ServletMappingNode.class);
  registerElementHandler(new XMLElement(WebTagNames.SESSION_CONFIG),SessionConfigNode.class);
  registerElementHandler(new XMLElement(WebTagNames.MIME_MAPPING),MimeMappingNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.CONTEXT_PARAM),InitParamNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.SECURITY_CONSTRAINT),SecurityConstraintNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.FILTER),FilterNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.FILTER_MAPPING),FilterMappingNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.LISTENER),ListenerNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.ERROR_PAGE),ErrorPageNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.LOGIN_CONFIG),LoginConfigNode.class);
  registerElementHandler(new XMLElement(WebTagNames.TAGLIB),TagLibNode.class);
  registerElementHandler(new XMLElement(WebTagNames.JSPCONFIG),JspConfigNode.class);
  registerElementHandler(new XMLElement(WebTagNames.LOCALE_ENCODING_MAPPING_LIST),LocaleEncodingMappingListNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.MESSAGE_DESTINATION),MessageDestinationNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.POST_CONSTRUCT),LifecycleCallbackNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.PRE_DESTROY),LifecycleCallbackNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.DATA_SOURCE),DataSourceDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.CONNECTION_FACTORY),ConnectionFactoryDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.JMS_CONNECTION_FACTORY),JMSConnectionFactoryDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.JMS_DESTINATION),JMSDestinationDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.MAIL_SESSION),MailSessionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.ADMINISTERED_OBJECT),AdministeredObjectDefinitionNode.class,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Creates new WebBundleNode 
 */
protected WebCommonNode(){
  super();
  registerElementHandler(new XMLElement(TagNames.ENVIRONMENT_PROPERTY),EnvEntryNode.class);
  registerElementHandler(new XMLElement(TagNames.EJB_REFERENCE),EjbReferenceNode.class);
  registerElementHandler(new XMLElement(TagNames.EJB_LOCAL_REFERENCE),EjbLocalReferenceNode.class);
  JndiEnvRefNode serviceRefNode=habitat.getService(JndiEnvRefNode.class,WebServicesTagNames.SERVICE_REF);
  if (serviceRefNode != null) {
    registerElementHandler(new XMLElement(WebServicesTagNames.SERVICE_REF),serviceRefNode.getClass(),"String_Node_Str");
  }
  registerElementHandler(new XMLElement(TagNames.RESOURCE_REFERENCE),ResourceRefNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.RESOURCE_ENV_REFERENCE),ResourceEnvRefNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.MESSAGE_DESTINATION_REFERENCE),MessageDestinationRefNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.PERSISTENCE_CONTEXT_REF),EntityManagerReferenceNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.PERSISTENCE_UNIT_REF),EntityManagerFactoryReferenceNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.ROLE),SecurityRoleNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.SERVLET),ServletNode.class);
  registerElementHandler(new XMLElement(WebTagNames.SERVLET_MAPPING),ServletMappingNode.class);
  registerElementHandler(new XMLElement(WebTagNames.SESSION_CONFIG),SessionConfigNode.class);
  registerElementHandler(new XMLElement(WebTagNames.MIME_MAPPING),MimeMappingNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.CONTEXT_PARAM),InitParamNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.SECURITY_CONSTRAINT),SecurityConstraintNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.FILTER),FilterNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.FILTER_MAPPING),FilterMappingNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.LISTENER),ListenerNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.ERROR_PAGE),ErrorPageNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(WebTagNames.LOGIN_CONFIG),LoginConfigNode.class);
  registerElementHandler(new XMLElement(WebTagNames.TAGLIB),TagLibNode.class);
  registerElementHandler(new XMLElement(WebTagNames.JSPCONFIG),JspConfigNode.class);
  registerElementHandler(new XMLElement(WebTagNames.LOCALE_ENCODING_MAPPING),LocaleEncodingMappingNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.MESSAGE_DESTINATION),MessageDestinationNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.POST_CONSTRUCT),LifecycleCallbackNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.PRE_DESTROY),LifecycleCallbackNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.DATA_SOURCE),DataSourceDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.CONNECTION_FACTORY),ConnectionFactoryDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.JMS_CONNECTION_FACTORY),JMSConnectionFactoryDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.JMS_DESTINATION),JMSDestinationDefinitionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.MAIL_SESSION),MailSessionNode.class,"String_Node_Str");
  registerElementHandler(new XMLElement(TagNames.ADMINISTERED_OBJECT),AdministeredObjectDefinitionNode.class,"String_Node_Str");
}