code: public static Resource getResource(String location) {
          Resource resource = resolver.getResource(location);
          return resource.exists() ? resource : null;
      }
docs: Returns the resource at the specified location. Supports classpath references.
  
  @param location The resource location.
  @return The corresponding resource, or null if one does not exist.