core/src/main/java/org/springframework/security/core/userdetails/cache/SpringCacheBasedUserCache.java
public UserDetails getUserFromCache(String username) {
		Cache.ValueWrapper element = username != null ? cache.get(username) : null;

		if (logger.isDebugEnabled()) {
			logger.debug("Cache hit: " + (element != null) + "; username: " + username);
		}

		if (element == null) {
			return null;
		}
		else {
			return (UserDetails) element.get();
		}
	}
public UserDetails getUserFromCache(String username) {
		Cache.ValueWrapper element = username != null ? cache.get(username) : null;

		if (logger.isDebugEnabled()) {
			logger.debug("Cache hit: " + (element != null) + "; username: " + username);
		}

		if (element == null) {
			return null;
		}
		else {
			return (UserDetails) element.get();
		}
	}
public UserDetails getUserFromCache ( String username ) { Cache . ValueWrapper element = username != null ? cache . get ( username ) : null ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Cache hit: " + ( element != null ) + "; username: " + username ) ; } if ( element == null ) { return null ; } else { return ( UserDetails ) element . get ( ) ; } }
========================================================================================================
========================================================================================================