public static Ini fromResourcePath(String resourcePath) throws ConfigurationException {
        if (!StringUtils.hasLength(resourcePath)) {
            throw new IllegalArgumentException("Resource Path argument cannot be null or empty.");
        }
        Ini ini = new Ini();
        ini.loadFromPath(resourcePath);
        return ini;
    }
Creates a new {@code Ini} instance loaded with the INI-formatted data in the resource at the given path.  The
resource path may be any value interpretable by the
{@link ResourceUtils#getInputStreamForPath(String) ResourceUtils.getInputStreamForPath} method.

@param resourcePath the resource location of the INI data to load when creating the {@code Ini} instance.
@return a new {@code Ini} instance loaded with the INI-formatted data in the resource at the given path.
@throws ConfigurationException if the path cannot be loaded into an {@code Ini} instance.
config/core/src/main/java/org/apache/shiro/config/Ini.java