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



@param beanClassLoader  ClassLoader set on the  BeanClassLoaderAware  Object
by the  Consumer.
@return a  Consumer capable of initializing an  BeanClassLoaderAware  Object
with the given bean  ClassLoader; never  null.
Returns a Consumer capable of initializing an BeanClassLoaderAware Object with the given bean ClassLoader . @param beanClassLoader ClassLoader set on the BeanClassLoaderAware Object by the Consumer . @return a Consumer capable of initializing an BeanClassLoaderAware Object with the given bean ClassLoader ; never null .
public static @NonNull Consumer<Object> beanClassLoaderAwareObjectInitializer(@Nullable ClassLoader beanClassLoader) {
		return beanClassLoader == null ? NO_OP : target -> {
			if (target instanceof BeanClassLoaderAware) {
				((BeanClassLoaderAware) target).setBeanClassLoader(beanClassLoader);
			}
		};
	}
public static @ NonNull Consumer < Object > beanClassLoaderAwareObjectInitializer ( @ Nullable ClassLoader beanClassLoader ) { return beanClassLoader == null ? NO_OP : target -> { if ( target instanceof BeanClassLoaderAware ) { ( ( BeanClassLoaderAware ) target ) . setBeanClassLoader ( beanClassLoader ) ; } } ; }
Returns a {@link Consumer} capable of initializing an {@link BeanClassLoaderAware} {@link Object}
 with the given bean {@link ClassLoader}.
Returns a { @link Consumer } capable of initializing an { @link BeanClassLoaderAware } { @link Object } with the given bean { @link ClassLoader } .