Program: 18356
Project: 18356
Buggy source:
/** 
 * OSGi container code needs to register these outside of  TransformerRegistryLoader.registerOOTBTransformers() due to the fact that  descriptors cannot be parsed directly from the class path.
 */
private void registerOOTBTransformers() throws Exception {
  Collection<ServiceReference<TransformSource>> refs=_bundleContext.getServiceReferences(TransformSource.class,null);
  for (  final ServiceReference<TransformSource> ref : refs) {
    TransformerRegistryLoader loader=new TransformerRegistryLoader(_domain.getTransformerRegistry()){
      @Override protected Class<?> getClass(      String className){
        Class<?> clazz=null;
        try {
          clazz=ref.getBundle().loadClass(className);
        }
 catch (        ClassNotFoundException ex) {
          logger.warn("String_Node_Str" + className + "String_Node_Str"+ ref.getBundle().getSymbolicName());
        }
        return clazz;
      }
    }
;
    TransformSource trs=_bundleContext.getService(ref);
    InputStream tStream=null;
    try {
      tStream=trs.getTransformsURL().openStream();
      Element tConfig=new ElementPuller().pull(tStream);
      Set<URI> tNamespaces=findNamespaces(new HashSet<URI>(),tConfig);
      NamespaceHandlerSet tHandlers=_extender.getNamespaceHandlerRegistry().getNamespaceHandlers(tNamespaces,getBundle());
      TransformsModel tm=new ModelPuller<TransformsModel>(new OsgiDescriptor(tHandlers)).pull(tConfig);
      loader.registerTransformers(tm);
    }
 catch (    final DuplicateTransformerException e) {
      logger.debug(e.getMessage());
    }
catch (    Exception ex) {
      logger.warn("String_Node_Str" + ref.getBundle().getSymbolicName(),ex);
    }
 finally {
      if (tStream != null) {
        tStream.close();
      }
      _bundleContext.ungetService(ref);
    }
  }
}

Fixed version (ground truth):
/** 
 * OSGi container code needs to register these outside of  TransformerRegistryLoader.registerOOTBTransformers() due to the fact that  descriptors cannot be parsed directly from the class path.
 */
private void registerOOTBTransformers() throws Exception {
  Collection<ServiceReference<TransformSource>> refs=_bundleContext.getServiceReferences(TransformSource.class,null);
  for (  final ServiceReference<TransformSource> ref : refs) {
    TransformerRegistryLoader loader=new TransformerRegistryLoader(_domain.getTransformerRegistry()){
      @Override protected Class<?> getClass(      String className){
        Class<?> clazz=null;
        try {
          clazz=ref.getBundle().loadClass(className);
        }
 catch (        ClassNotFoundException ex) {
          logger.warn("String_Node_Str" + className + "String_Node_Str"+ ref.getBundle().getSymbolicName());
        }
        return clazz;
      }
    }
;
    TransformSource trs=_bundleContext.getService(ref);
    InputStream tStream=null;
    try {
      tStream=trs.getTransformsURL().openStream();
      Element tConfig=new ElementPuller().pull(tStream);
      Set<URI> tNamespaces=findNamespaces(new HashSet<URI>(),tConfig);
      NamespaceHandlerSet tHandlers=_extender.getNamespaceHandlerRegistry().getNamespaceHandlers(tNamespaces,getBundle());
      TransformsModel tm=new ModelPuller<TransformsModel>(new OsgiDescriptor(tHandlers)).pull(tConfig);
      loader.registerTransformers(tm,false);
    }
 catch (    final DuplicateTransformerException e) {
      logger.debug(e.getMessage());
    }
catch (    Exception ex) {
      logger.warn("String_Node_Str" + ref.getBundle().getSymbolicName(),ex);
    }
 finally {
      if (tStream != null) {
        tStream.close();
      }
      _bundleContext.ungetService(ref);
    }
  }
}