spring-geode/src/main/java/org/springframework/geode/core/util/ObjectAwareUtils.java
/**
	 * Returns a {@link Consumer} capable of initializing an {@link BeanNameAware} {@link Object}
	 * with the given {@link String bean name}.
	 *
	 * The {@link BeanNameAware#setBeanName(String)} method is only called on the {@link BeanNameAware} {@link Object}
	 * if the {@link String bean name} is not {@literal null}.
	 *
	 * @param beanName {@link String} containing the bean name to set on the {@link BeanNameAware} {@link Object}
	 * by the {@link Consumer}.
	 * @return a {@link Consumer} capable of initializing an {@link BeanNameAware} {@link Object}
	 * with the given {@link String bean name}; never {@literal null}.
	 * @see org.springframework.beans.factory.BeanNameAware
	 * @see java.util.function.Consumer
	 */
Returns a  Consumer capable of initializing an  BeanNameAware  Object
with the given  String bean name.

The  BeanNameAware#setBeanName(String) method is only called on the  BeanNameAware  Object
if the  String bean name is not  null.

@param beanName  String containing the bean name to set on the  BeanNameAware  Object
by the  Consumer.
@return a  Consumer capable of initializing an  BeanNameAware  Object
with the given  String bean name; never  null.
Returns a Consumer capable of initializing an BeanNameAware Object with the given String bean name . The BeanNameAware#setBeanName ( String ) method is only called on the BeanNameAware Object if the String bean name is not null . @param beanName String containing the bean name to set on the BeanNameAware Object by the Consumer . @return a Consumer capable of initializing an BeanNameAware Object with the given String bean name ; never null .
public static @NonNull Consumer<Object> beanNameAwareObjectInitializer(@Nullable String beanName) {
		return hasNoText(beanName) ? NO_OP : target -> {
			if (target instanceof BeanNameAware) {
				((BeanNameAware) target).setBeanName(beanName);
			}
		};
	}
public static @ NonNull Consumer < Object > beanNameAwareObjectInitializer ( @ Nullable String beanName ) { return hasNoText ( beanName ) ? NO_OP : target -> { if ( target instanceof BeanNameAware ) { ( ( BeanNameAware ) target ) . setBeanName ( beanName ) ; } } ; }
Returns a {@link Consumer} capable of initializing an {@link BeanNameAware} {@link Object}
 with the given {@link String bean name}.
Returns a { @link Consumer } capable of initializing an { @link BeanNameAware } { @link Object } with the given { @link String bean name } .