// Gets an URL for the specified name.
// Try a few different means to get the file as an url and then create the appropriate
// InputStreamProvider from that URL.
URL url = resolveNonStaticURL(filename);
if (url != null)
provider = new URLInputStreamProvider(url);
else
{
// see if it is an URL that can be loaded by the ClassLoader.
// We create a StaticURLInputStreamProvider from the url because we consider the
// url static because it can't be changed without restarting the server, so we don't