How can i set the setElementTemplate() in userTask() to my.Form.Task as the interface setElementTemplate() is not found in the javadocs anywhere

Hi ,

For userTask in general category we have element Template , i want to set the element template to Q & A , form or calender and so on . In the javadocs camunda BPM Javadocs 7.3.7-ee i couldnot find a method that would add camunda:elementTemplate=“my.Form.Task” to BPMN file . With the below code im able to set properties to the form whether it is a checkbox or a drop down , able to add the values but unable to set element Template

 CamundaFormField form1 = modelInstance
.newInstance(CamundaFormField.class); 
 CamundaFormData formD = modelInstance
		.newInstance( CamundaFormData.class); 
 CamundaProperties camundaProperties = modelInstance
			.newInstance(CamundaProperties.class); 
 
 CamundaProperty camundaProperty = modelInstance
	.newInstance(CamundaProperty.class);
 CamundaProperty camundaProperty2 = modelInstance
			.newInstance(CamundaProperty.class);
 


form1.setCamundaId("id1");
form1.setCamundaLabel("label");
form1.setCamundaType("string");
form1.setCamundaDefaultValue("default");

camundaProperty.setCamundaName("dropdownvalue");
camundaProperty.setCamundaValue("lilly");
camundaProperty2.setCamundaName("dropdowntitle");
camundaProperty2.setCamundaValue("lilly");

formD.getCamundaFormFields().add(form1);
camundaProperties.getCamundaProperties().add(camundaProperty);
camundaProperties.getCamundaProperties().add(camundaProperty2);