Create flowable delegate expression programatically with flowable-bpmn-converter

I’m trying to create a delegateExpression on a service task programatically with the flowable-bpmn-converter, to make the following output
flowable:delegateExpression="${javaDelegate}"

I’m trying to programatically create the following:
<serviceTask id="someId" name="Call Java Delegate">

I’ve tried something like this (along with a few variations

List<ExtensionAttribute> extensionAttributes = new ArrayList<ExtensionAttribute>();
ExtensionAttribute extensionAttribute = new ExtensionAttribute();
extensionAttribute.setNamespacePrefix("xmlns");
extensionAttribute.setNamespace("flowable");
extensionAttribute.setName("delegateExpression");
extensionAttribute.setValue("${javaDelegate}");
extensionAttributes.add(extensionAttribute);
serviceTask.getAttributes().put("customAttribute", extensionAttributes);

I’m using the Flowable BPMN converter and creating the XML https://github.com/flowable/flowable-engine/tree/master/modules/flowable-bpmn-converter

A few months later I finally figured this out, the implementationType needs to be set in the service task (there’s a handy list of constants) :
serviceTask.setImplementationType(BpmnXMLConstants.ATTRIBUTE_TASK_SERVICE_DELEGATEEXPRESSION);
Then the value is set using: serviceTask.setImplementation("${javaDelegate}");

From there, the desired output is achieved:
flowable:delegateExpression="${javaDelegate}"