class MultipleInstanceActivityPropertyWriter extends ActivityPropertyWriter {

    protected ItemDefinition createItemDefinition(String name, String type) {
        ItemDefinition item = bpmn2.createItemDefinition();
        item.setId(Ids.multiInstanceItemType(activity.getId(), name));
        String varType = type.isEmpty() ? Object.class.getName() : type;
        item.setStructureRef(varType);
        return item;
    }

    public  MultipleInstanceActivityPropertyWriter(Activity activity,
                                                  VariableScope variableScope,
                                                  Set<DataObject> dataObjects);

}