public DLockToken getToken(Object name) {
    synchronized (tokens) {
      return tokens.get(name);
    }
  }
Returns the named lock token or null if it doesn't exist. Synchronizes on tokens map.

@return the named lock token or null if it doesn't exist
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockService.java