Program: 44865
Project: 44865
Buggy source:
/** 
 * Public constructor
 * @param context
 * @throws ServiceException
 */
public TransformerService(ServletContext context) throws ServiceException {
  super(context);
  try {
    logger.warn("String_Node_Str");
    ApplicationContext applicationContext=ApplicationContext.getInstance();
    templatesMap=new HashMap<String,Templates>();
    logger.warn("String_Node_Str");
    String resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_0_TO_OAIDC);
    DOMSource domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_0ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_0,kernel2_0ToOaidcTemplates);
    templatesMap.put(null,kernel2_0ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_1_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_1ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_1,kernel2_1ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_2_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_2ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_2,kernel2_2ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_3_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_3ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_3,kernel2_3ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL3_0_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel3_0ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_3_0,kernel3_0ToOaidcTemplates);
    logger.warn("String_Node_Str");
  }
 catch (  TransformerConfigurationException te) {
    throw new ServiceException(te.getMessageAndLocation(),te);
  }
catch (  Exception e) {
    logger.error("String_Node_Str",e);
    throw new ServiceException(e);
  }
}

Fixed version (ground truth):
/** 
 * Public constructor
 * @param context
 * @throws ServiceException
 */
public TransformerService(ServletContext context) throws ServiceException {
  super(context);
  try {
    logger.warn("String_Node_Str");
    ApplicationContext applicationContext=ApplicationContext.getInstance();
    templatesMap=new HashMap<String,Templates>();
    logger.warn("String_Node_Str");
    String resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_IDENTITY);
    DOMSource domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    identityTransform=TransformerFactory.newInstance().newTemplates(domSource);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_0_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_0ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_0,kernel2_0ToOaidcTemplates);
    templatesMap.put(null,kernel2_0ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_1_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_1ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_1,kernel2_1ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_2_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_2ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_2,kernel2_2ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL2_3_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel2_3ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_2_3,kernel2_3ToOaidcTemplates);
    logger.warn("String_Node_Str");
    resourcePath=applicationContext.getProperty(Constants.Property.STYLESHEET_KERNEL3_0_TO_OAIDC);
    domSource=buildDOMSource(context.getResourceAsStream(resourcePath));
    Templates kernel3_0ToOaidcTemplates=TransformerFactory.newInstance().newTemplates(domSource);
    templatesMap.put(Constants.SchemaVersion.VERSION_3_0,kernel3_0ToOaidcTemplates);
    logger.warn("String_Node_Str");
  }
 catch (  TransformerConfigurationException te) {
    throw new ServiceException(te.getMessageAndLocation(),te);
  }
catch (  Exception e) {
    logger.error("String_Node_Str",e);
    throw new ServiceException(e);
  }
}