private boolean isSessionFilename ( String filename ) { if ( ! StringUtils . hasText ( filename ) ) { return false ; } String [ ] parts = filename . split ( "_" ) ; // Need at least 2 parts for a valid filename return ( parts . length >= 2 ) ; }
Check if the filename matches our session pattern .