@SuppressWarnings("unused")
	private final void purgeBeanClasses(ClassLoader loader) {
		Iterator<Class<?>> classes = cache.keySet().iterator();
		while (classes.hasNext()) {
			if (loader == classes.next().getClassLoader()) {
				classes.remove();
			}
		}
	}
@ SuppressWarnings ( "unused" ) private final void purgeBeanClasses ( ClassLoader loader ) { Iterator < Class < ? > > classes = cache . keySet ( ) . iterator ( ) ; while ( classes . hasNext ( ) ) { if ( loader == classes . next ( ) . getClassLoader ( ) ) { classes . remove ( ) ; } } }
This method is not part of the API, though it can be used (reflectively) by clients of this
class to remove entries from the cache when the beans are being unloaded.

Note: this method is present in the reference implementation, so we're adding it here to ease
migration.

@param classloader
The classLoader used to load the beans.