package com.liferay.portal.kernel.resource;
import java.io.InputStream;
public class ContextClassLoaderResourceRetriever implements ResourceRetriever {
public ContextClassLoaderResourceRetriever(String fileName) {
<BUG>ClassLoader contextClassLoader =
Thread.currentThread().getContextClassLoader();
_inputStream = contextClassLoader.getResourceAsStream(fileName);</BUG>
}
public InputStream getInputStream() {

package com.liferay.portal.kernel.resource;
import java.io.InputStream;
public class ContextClassLoaderResourceRetriever implements ResourceRetriever {
public ContextClassLoaderResourceRetriever(String fileName) {
Thread currentThread = Thread.currentThread();
ClassLoader contextClassLoader = currentThread.getContextClassLoader();
_inputStream = contextClassLoader.getResourceAsStream(fileName);
}
public InputStream getInputStream() {
