code: private static void serializeCweData(Map<String, String> cwe, File out) {
          try (FileOutputStream fout = new FileOutputStream(out);
                  ObjectOutputStream objOut = new ObjectOutputStream(fout);) {
              System.out.println("Writing " + cwe.size() + " cwe entries.");
              objOut.writeObject(cwe);
              System.out.println(String.format("Serialized CWE data written to %s", out.getCanonicalPath()));
              System.out.println("To update the ODC CWE data copy the serialized file to 'src/main/resources/data/cwe.hashmap.serialized'");
          } catch (IOException ex) {
              System.err.println(String.format("Error generating serialized data: %s", ex.getMessage()));
          }
      }
docs: Writes the map of CWE data to disk.
  
  @param cwe the CWE data
  @param out the file output location