in core/src/main/java/org/apache/jsieve/ConfigurationManager.java [154:173]
private InputStream getConfigStream(String configName) throws IOException {
InputStream stream = null;
// Context classloader is usually right in a JEE evironment
final ClassLoader contextClassLoader = Thread.currentThread()
.getContextClassLoader();
if (contextClassLoader != null) {
stream = contextClassLoader.getResourceAsStream(configName);
}
// Sometimes context classloader will not be set conventionally
// So, try class classloader
if (null == stream) {
stream = ConfigurationManager.class.getClassLoader()
.getResourceAsStream(configName);
}
if (null == stream)
throw new IOException("Resource \"" + configName + "\" not found");
return stream;
}