/**
   * Returns the player that matches the given class and format.
   *
   * @param profileClass The class to match.
   * @param ext The format to match.
   * @return The player if a match could be found, <code>null</code> otherwise.
   */
  public static Player getPlayer(final Class<? extends Player> profileClass, final Format ext) {

    for (Player player : players) {
      if (player.getClass().equals(profileClass)
          && player.type() == ext.getType()
          && !player.excludeFormat(ext)) {
        return player;
      }
    }

    return null;
  }