code: public Resource getResource(final String name) {
          return doPrivileged(new PrivilegedAction<Resource>() {
              public Resource run() {
                  try {
                      final VirtualFile file = getExistentVirtualFile(PathUtils.canonicalize(name));
                      if (file == null) {
                          return null;
                      }
                      return new VFSEntryResource(file.getPathNameRelativeTo(root), file, file.toURL());
                  } catch (MalformedURLException e) {
                      // must be invalid...?  (todo: check this out)
                      return null;
                  }
              }
          });
      }
docs: {@inheritDoc}