originalStream = ClassUtil.getResource(url.substring(12, url.length()), getClass()).openStream();
} else {
HttpMethodBase httpMethod;
try {
HttpMethodFactory methodFactory = HttpMethodFactory.Factory.getInstance("GET", config, new URL(url));
httpMethod = methodFactory.getInstance(null);
} catch (ConfigurationException ce) {
throw (IOException)(new IOException(ce.getMessage()).initCause(ce));
}
// Authentication is not being overridden on the method. It needs