public static boolean isFile(final String resource) {
        return StringUtils.isNotBlank(resource) && resource.startsWith(FILE_URL_PREFIX);
    }
Is the resource a file?

@param resource the resource
@return true/false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java