private String getIdFromFilename ( String filename ) { if ( ! StringUtils . hasText ( filename ) || filename . indexOf ( ' ' ) < 0 ) { return null ; } return filename . substring ( 0 , filename . lastIndexOf ( ' ' ) ) ; }
Extract the session id from the filename .