private InputStream getServletContextResourceStream(String path) {
        InputStream is = null;

        path = WebUtils.normalize(path);
        ServletContext sc = getServletContext();
        if (sc != null) {
            is = sc.getResourceAsStream(path);
        }

        return is;
    }
Converts the specified file path to an {@link Ini} instance.
<p/>
If the path does not have a resource prefix as defined by {@link ResourceUtils#hasResourcePrefix(String)},
the path is expected to be resolvable by the {@code ServletContext} via
{@link javax.servlet.ServletContext#getResourceAsStream(String)}.

@param path     the path of the INI resource to load into an INI instance.
@param required if the specified path must exist
@return an INI instance populated based on the given INI resource path.
web/src/main/java/org/apache/shiro/web/env/IniWebEnvironment.java