private boolean filterAttribute ( final String name ) { if ( this . manager == null ) { throw new IllegalStateException ( "There's no manager set." ) ; } final Pattern pattern = ( ( SessionManager ) manager ) . getMemcachedSessionService ( ) . getSessionAttributePattern ( ) ; if ( pattern == null ) { return true ; } return pattern . matcher ( name ) . matches ( ) ; }
Check whether the given attribute name matches our name pattern and shall be stored in memcached .