spring-geode/src/main/java/org/springframework/geode/core/io/support/ResourcePrefix.java
/**
	 * Factory method used to try and find a {@link ResourcePrefix} enumerated value
	 * matching the given {@link String prefix}.
	 *
	 * @param prefix {@link String} with the name of the prefix.
	 * @return a {@link ResourcePrefix} matching the given {@link String prefix} by name, or {@literal null}
	 * if the {@link String prefix} does not match any {@link ResourcePrefix} enumerated value.
	 */
Factory method used to try and find a  ResourcePrefix enumerated value
matching the given  String prefix.

@param prefix  String with the name of the prefix.
@return a  ResourcePrefix matching the given  String prefix by name, or  null
if the  String prefix does not match any  ResourcePrefix enumerated value.
Factory method used to try and find a ResourcePrefix enumerated value matching the given String prefix . @param prefix String with the name of the prefix . @return a ResourcePrefix matching the given String prefix by name or null if the String prefix does not match any ResourcePrefix enumerated value .
public static @Nullable ResourcePrefix from(@Nullable String prefix) {
		if (StringUtils.hasText(prefix)) {
			prefix = prefix.trim().toLowerCase();
			for (ResourcePrefix resourcePrefix : values()) {
				if (resourcePrefix.toString().equals(prefix)) {
					return resourcePrefix;
				}
			}
		}
		return null;
	}
public static @ Nullable ResourcePrefix from ( @ Nullable String prefix ) { if ( StringUtils . hasText ( prefix ) ) { prefix = prefix . trim ( ) . toLowerCase ( ) ; for ( ResourcePrefix resourcePrefix : values ( ) ) { if ( resourcePrefix . toString ( ) . equals ( prefix ) ) { return resourcePrefix ; } } } return null ; }
Factory method used to try and find a {@link ResourcePrefix} enumerated value
 matching the given {@link String prefix}.
Factory method used to try and find a { @link ResourcePrefix } enumerated value matching the given { @link String prefix } .