private URL toUrl()

in src/main/java/org/apache/creadur/tentacles/TentaclesResources.java [53:62]


    private URL toUrl(final String resourcePath) {
        final URL resourceUrl =
                this.getClass().getClassLoader().getResource(resourcePath);
        if (resourceUrl == null) {
            throw new IllegalStateException(
                    "Tentacles expects the classpath to contain "
                            + resourcePath);
        }
        return resourceUrl;
    }