@Override
    @SuppressWarnings("deprecation")
    public URI getURI() throws IOException {
        try {
            return VfsUtils.getURI(this.resource);
        } catch (Exception ex) {
            throw new IOException("Failed to obtain URI for " + this.resource, ex);
        }
    }
Create a new {@code VfsResource} wrapping the given resource handle.

@param resource a {@code org.jboss.vfs.VirtualFile} instance
                (untyped in order to avoid a static dependency on the VFS API)
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/VfsResource.java