public boolean isSessionToken(String token){
synchronized (sessionTokens) {
    return sessionTokens.contains(token);
  }
}

public boolean isSessionToken ( String token ) { synchronized ( sessionTokens ) { return sessionTokens . contains ( token ) ; } }
checks if is session token .
