presto-main/src/main/java/io/prestosql/version/EmbedVersion.java/EmbedVersion/createClass
class EmbedVersion:    private static Class<?> createClass(ServerConfig serverConfig)
    {
        ClassDefinition classDefinition = new ClassDefinition(
                a(PUBLIC, FINAL),
                makeClassName(baseClassName(serverConfig)),
                type(Object.class),
                type(Runnable.class),
                type(Callable.class));

        implementRunnable(classDefinition);
        implementCallable(classDefinition);

        return defineClass(classDefinition, Runnable.class, ImmutableMap.of(), EmbedVersion.class.getClassLoader());
    }