static Collection<String> loadClassNames(URL sanctionedSerializables) throws IOException {
    if (sanctionedSerializables == null) {
      return emptyList();
    }
    Collection<String> result = new ArrayList<>(1000);
    try (InputStream inputStream = sanctionedSerializables.openStream();
        BufferedReader in = new BufferedReader(new InputStreamReader(inputStream))) {
      String line;
      while ((line = in.readLine()) != null) {
        line = line.trim();
        if (!(line.startsWith("#") || line.startsWith("//"))) {
          line = line.replaceAll("/", ".");
          result.add(line.substring(0, line.indexOf(',')));
        }
      }
    }
    return result;
  }
Loads class names of sanctioned serializables from a resource. Caller will add these to the
serialization filter acceptlist.
geode-serialization/src/main/java/org/apache/geode/internal/serialization/filter/SanctionedSerializables.java