@Override
      public boolean toData(Object o, DataOutput out) throws IOException {
        try {
          writeString((String) o, out);
        } catch (UTFDataFormatException ex) {
          // See bug 30428
          String s = "While writing a String of length " + ((String) o).length();
          UTFDataFormatException ex2 = new UTFDataFormatException(s);
          ex2.initCause(ex);
          throw ex2;
        }
        return true;
      }
Initializes the optional serialization "accept list" if the user has requested it in the
DistributionConfig

@param config the DistributedSystem configuration
@param services SanctionedSerializablesService that might have classes to acceptlist
geode-core/src/main/java/org/apache/geode/internal/InternalDataSerializer.java