@Override public PluginVersion getDetectedPluginVersion(String playerName) throws PluginNotFoundException { if (playerName.equals("Capsule") || playerName.equals("FlatVideoPlayer")) { return PluginVersion.get(1, 0, 0); } else { throw new IllegalArgumentException("Unknown player - '" + playerName + "'"); } }