apache-geode-extensions/src/main/java/org/springframework/geode/util/CacheUtils.java
/**
	 * Null-safe method to determine whether the given {@link Region} was configured with a {@link Pool}.
	 *
	 * A {@link Region} configured with a {@link Pool} (by {@link String name} specified in the {@link RegionAttributes})
	 * is a strong indicator that the {@link Region} is a {@literal client} {@link Region}.
	 *
	 * @param region {@link Region} to evaluate.
	 * @return a boolean to determine whether the given {@link Region} was configured with a {@link Pool}.
	 * @see org.apache.geode.cache.client.Pool
	 * @see org.apache.geode.cache.Region
	 */
Null-safe method to determine whether the given  Region was configured with a  Pool.
A  Region configured with a  Pool (by  String name specified in the  RegionAttributes)
is a strong indicator that the  Region is a  client  Region.

@param region  Region to evaluate.
@return a boolean to determine whether the given  Region was configured with a  Pool.
Null - safe method to determine whether the given Region was configured with a Pool . A Region configured with a Pool ( by String name specified in the RegionAttributes ) is a strong indicator that the Region is a client Region . @param region Region to evaluate . @return a boolean to determine whether the given Region was configured with a Pool .
public static boolean isRegionWithPool(Region<?, ?> region) {
		return Optional.ofNullable(region)
			.map(Region::getAttributes)
			.map(RegionAttributes::getPoolName)
			.filter(CacheUtils::hasText)
			.isPresent();
	}
public static boolean isRegionWithPool ( Region < ? , ? > region ) { return Optional . ofNullable ( region ) . map ( Region :: getAttributes ) . map ( RegionAttributes :: getPoolName ) . filter ( CacheUtils :: hasText ) . isPresent ( ) ; }
Null-safe method to determine whether the given {@link Region} was configured with a {@link Pool}.
Null - safe method to determine whether the given { @link Region } was configured with a { @link Pool } .