/**
   * Find a display by ID.
   *
   * @param displayId ID of the display
   * @return a display access object or null if not found
   */
  public synchronized DisplayAccess findDisplayById(int displayId) {
    int size = displays.size();

    for (int i = 0; i < size; i++) {
      DisplayAccess current = (DisplayAccess) displays.elementAt(i);

      if (current.getDisplayId() == displayId) {
        return current;
      }
    }

    return null;
  }