public MessageSerializer<?> create() throws Exception {
            final Class<?> clazz = Class.forName(className);
            final MessageSerializer<?> serializer = (MessageSerializer<?>) clazz.newInstance();
            Optional.ofNullable(config).ifPresent(c -> serializer.configure(c, null));
            return serializer;
        }
The configuration for the specified serializer with the {@link #className}.
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Settings.java