}
@Override
public void convertProperty(M2Type contentType, String formSet, Form form, FormPropertyDefinition propertyDefinition,
WorkflowDefinitionConversion conversion) {
ReferencePropertyDefinition referenceDefinition = (ReferencePropertyDefinition) propertyDefinition;
if (AlfrescoConversionConstants.FORM_REFERENCE_DUEDATE.equals(referenceDefinition.getType())) {
addDueDateReference(form, formSet, referenceDefinition.isWritable());
} else if (AlfrescoConversionConstants.FORM_REFERENCE_PACKAGE_ITEMS.equals(referenceDefinition.getType())) {
addPackageReference(form, formSet, contentType, referenceDefinition);
} else if (AlfrescoConversionConstants.FORM_REFERENCE_EMAIL_NOTIFICATION.equals(referenceDefinition.getType())) {
addEmailNotificationReference(form, formSet, contentType, referenceDefinition);
} else if (AlfrescoConversionConstants.FORM_REFERENCE_PRIORITY.equals(referenceDefinition.getType())) {
addPriorityReference(form, formSet, referenceDefinition.isWritable());
} else if (AlfrescoConversionConstants.FORM_REFERENCE_WORKFLOW_DESCRIPTION.equals(referenceDefinition.getType())) {
addWorkflowDescriptionReference(form, formSet);
} else if (AlfrescoConversionConstants.FORM_REFERENCE_COMMENT.equals(referenceDefinition.getType())) {
addCommentReference(form, formSet);
} else if (AlfrescoConversionConstants.FORM_REFERENCE_FIELD.equals(referenceDefinition.getType())) {
addFieldReference(form, formSet, referenceDefinition, contentType, conversion);
} else {
addAssociation(form, formSet, referenceDefinition, contentType, conversion);
}
}