code: public boolean isValid( @Nullable final String sessionId ) {
          return sessionId != null && _pattern.matcher( sessionId ).matches();
      }
docs: Checks if the given session id matches the pattern
  <code>[^-.]+-[^.]+(\.[\w]+)?</code>.
  
  @param sessionId
  the session id
  @return true if matching, otherwise false.