Buggy code:
public class XMLCatalog extends DataType implements Cloneable , URIResolver , EntityResolver { private static FileUtils fileUtils = FileUtils . newFileUtils ( ) ; private Vector elements = new Vector ( ) ; private Path classpath ; private Path catalogPath ; public static final String APACHE_RESOLVER = "org.apache.tools.ant.types.resolver.ApacheCatalogResolver" ; public static final String CATALOG_RESOLVER = "org.apache.xml.resolver.tools.CatalogResolver" ; public XMLCatalog ( ) { } private Vector getElements ( ) { } private Path getClasspath ( ) { } private void setElements ( Vector aVector ) { } public Path createClasspath ( ) { } public void setClasspath ( Path classpath ) { } public void setClasspathRef ( Reference r ) { } public Path createCatalogPath ( ) { } public void setCatalogPathRef ( Reference r ) { } public Path getCatalogPath ( ) { } public void addDTD ( ResourceLocation dtd ) throws BuildException { } public void addEntity ( ResourceLocation entity ) throws BuildException { } public void addConfiguredXMLCatalog ( XMLCatalog catalog ) { } public void setRefid ( Reference r ) throws BuildException { } public InputSource resolveEntity ( String publicId , String systemId ) throws IOException , SAXException { } public Source resolve ( String href , String base ) throws TransformerException { } private XMLCatalog getRef ( ) { } private XMLCatalog . CatalogResolver catalogResolver = null ; private XMLCatalog . CatalogResolver getCatalogResolver ( ) { if ( ( catalogResolver ) == null ) { AntClassLoader loader = null ; loader = getProject ( ) . createClassLoader ( systemClasspath ) ; try { Class clazz = Class . forName ( XMLCatalog . APACHE_RESOLVER , true , loader ) ; ClassLoader apacheResolverLoader = clazz . getClassLoader ( ) ; Class baseResolverClass = Class . forName ( XMLCatalog . CATALOG_RESOLVER , true , apacheResolverLoader ) ; ClassLoader baseResolverLoader = baseResolverClass . getClassLoader ( ) ; clazz = Class . forName ( XMLCatalog . APACHE_RESOLVER , true , baseResolverLoader ) ; Object obj = clazz . newInstance ( ) ; catalogResolver = new XMLCatalog . ExternalResolver ( clazz , obj ) ; } catch ( Throwable ex ) { catalogResolver = new XMLCatalog . InternalResolver ( ) ; if ( ( ( getCatalogPath ( ) ) != null ) && ( ( getCatalogPath ( ) . list ( ) . length ) != 0 ) ) { <START_BUG> log ( ( "Warning:<seq2seq4repair_space>catalogpath<seq2seq4repair_space>listing<seq2seq4repair_space>external<seq2seq4repair_space>catalogs" + "<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>ignored" ) , MSG_WARN ) ; <END_BUG> } log ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>Apache<seq2seq4repair_space>resolver:<seq2seq4repair_space>" + ex ) , MSG_DEBUG ) ; } } return catalogResolver ; } private void setEntityResolver ( SAXSource source ) throws TransformerException { } private ResourceLocation findMatchingEntry ( String publicId ) { } private String removeFragment ( String uri ) { } private InputSource filesystemLookup ( ResourceLocation matchingEntry ) { } private InputSource classpathLookup ( ResourceLocation matchingEntry ) { } private InputSource urlLookup ( ResourceLocation matchingEntry ) { } private interface CatalogResolver extends URIResolver , EntityResolver { InputSource resolveEntity ( String publicId , String systemId ) { } Source resolve ( String href , String base ) throws TransformerException { } } private class InternalResolver implements XMLCatalog . CatalogResolver { public InternalResolver ( ) { } public InputSource resolveEntity ( String publicId , String systemId ) { } public Source resolve ( String href , String base ) throws TransformerException { } } private class ExternalResolver implements XMLCatalog . CatalogResolver { private Method setXMLCatalog = null ; private Method parseCatalog = null ; private Method resolveEntity = null ; private Method resolve = null ; private Object resolverImpl = null ; private boolean externalCatalogsProcessed = false ; public ExternalResolver ( Class resolverImplClass , Object resolverImpl ) { } public InputSource resolveEntity ( String publicId , String systemId ) { } public Source resolve ( String href , String base ) throws TransformerException { } private void processExternalCatalogs ( ) { } } }

Fix:
log ( ( "Warning:<seq2seq4repair_space>XML<seq2seq4repair_space>resolver<seq2seq4repair_space>not<seq2seq4repair_space>found;<seq2seq4repair_space>external<seq2seq4repair_space>catalogs" + "<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>ignored" ) , MSG_WARN ) ;