public static AbstractResource getResourceFrom(final String location) throws IOException {
        val resource = getRawResourceFrom(location);
        if (!resource.exists() || (resource.isFile() && resource.getFile().isFile() && !resource.isReadable())) {
            throw new FileNotFoundException("Resource " + location + " does not exist or is unreadable");
        }
        return resource;
    }
Gets resource from a String location.

@param location the metadata location
@return the resource from
@throws IOException the exception
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java