private static boolean canServe(ServerInfo s, Collection<String> sources) { List<String> supportedSources = s.getSources(); for (String src : sources) { if (!supportedSources.contains(src)) return false; } return true; }