public static DynamicSchema toDynamicSchema(String name, ProtoFileElement rootElem, Map<String, ProtoFileElement> dependencies) {
        Objects.requireNonNull(name, "name cannot be null");
        Objects.requireNonNull(rootElem, "rootElem cannot be null");
        Objects.requireNonNull(dependencies, "dependencies cannot be null");

        try {
            return new ProtoFileElementTemplate().convert(name, rootElem, dependencies);
        } catch (Descriptors.DescriptorValidationException e) {
            throw new IllegalStateException("Failed to build dynamic schema", e);
        }
    }
Converts a ProtoFileElement and its dependencies into a DynamicSchema.

@param name The name/identifier for the schema
@param rootElem The root proto file element to convert
@param dependencies Map of dependency file names to their ProtoFileElements
@return A DynamicSchema representing the protobuf schema
core/src/main/java/kafka/automq/table/deserializer/proto/parse/ProtobufSchemaParser.java