spring-geode/src/main/java/org/springframework/geode/core/io/support/ResourceLoaderResourceResolver.java
/**
	 * Tries to resolve a {@link Resource} at the given {@link String location} using a Spring {@link ResourceLoader},
	 * such as a Spring {@link ApplicationContext}.
	 *
	 * The targeted, identified {@link Resource} can be further {@link #isQualified(Resource) qualified} by subclasses
	 * based on application requirements or use case (UC).
	 *
	 * In the event that a {@link Resource} cannot be identified at the given {@link String location}, then applications
	 * have 1 last opportunity to handle the missing {@link Resource} event, and either return a different or default
	 * {@link Resource} or throw a {@link ResourceNotFoundException}.
	 *
	 * @param location {@link String location} identifying the {@link Resource} to resolve;
	 * must not be {@literal null}.
	 * @throws IllegalArgumentException if {@link String location} is not specified.
	 * @return an {@link Optional} {@link Resource} handle for the given {@link String location}.
	 * @see org.springframework.core.io.Resource
	 * @see #isQualified(Resource)
	 * @see #onMissingResource(Resource, String)
	 * @see #postProcess(Resource)
	 * @see java.util.Optional
	 */
Tries to resolve a  Resource at the given  String location using a Spring  ResourceLoader,
such as a Spring  ApplicationContext.

The targeted, identified  Resource can be further  #isQualified(Resource) qualified by subclasses
based on application requirements or use case (UC).

In the event that a  Resource cannot be identified at the given  String location, then applications
have 1 last opportunity to handle the missing  Resource event, and either return a different or default
Resource or throw a  ResourceNotFoundException.

@param location  String location identifying the  Resource to resolve;
must not be  null.
@throws IllegalArgumentException if  String location is not specified.
@return an  Optional  Resource handle for the given  String location.
Tries to resolve a Resource at the given String location using a Spring ResourceLoader such as a Spring ApplicationContext . The targeted identified Resource can be further #isQualified ( Resource ) qualified by subclasses based on application requirements or use case ( UC ) . In the event that a Resource cannot be identified at the given String location then applications have 1 last opportunity to handle the missing Resource event and either return a different or default Resource or throw a ResourceNotFoundException . @param location String location identifying the Resource to resolve ; must not be null . @throws IllegalArgumentException if String location is not specified . @return an Optional Resource handle for the given String location .
@Override
	public Optional<Resource> resolve(@NonNull String location) {
		Assert.hasText(location, () ->
			String.format("The location [%s] of the Resource to resolve must be specified", location));
		Resource resource = getResourceLoader().getResource(location);
		resource = postProcess(resource);
		Resource resolvedResource = isQualified(resource)
			? resource
			: onMissingResource(resource, location);
		return Optional.ofNullable(resolvedResource);
	}
@ Override public Optional < Resource > resolve ( @ NonNull String location ) { Assert . hasText ( location , ( ) -> String . format ( "The location [%s] of the Resource to resolve must be specified" , location ) ) ; Resource resource = getResourceLoader ( ) . getResource ( location ) ; resource = postProcess ( resource ) ; Resource resolvedResource = isQualified ( resource ) ? resource : onMissingResource ( resource , location ) ; return Optional . ofNullable ( resolvedResource ) ; }
Tries to resolve a {@link Resource} at the given {@link String location} using a Spring {@link ResourceLoader},
 such as a Spring {@link ApplicationContext}.
Tries to resolve a { @link Resource } at the given { @link String location } using a Spring { @link ResourceLoader } such as a Spring { @link ApplicationContext } .