def METHOD_NAME(self):
    data_refs = {}
    for elem in self.xpath('./bpmn:ioSpecification/bpmn:dataInput'):
        ref = self.create_data_spec(elem, TaskDataReference)
        data_refs[ref.bpmn_id] = ref
    for elem in self.xpath('./bpmn:ioSpecification/bpmn:dataOutput'):
        ref = self.create_data_spec(elem, TaskDataReference)
        data_refs[ref.bpmn_id] = ref
    inputs, outputs = [], []
    for ref in self.xpath('./bpmn:ioSpecification/bpmn:inputSet/bpmn:dataInputRefs'):
        if ref.text in data_refs:
            inputs.append(data_refs[ref.text])
    for ref in self.xpath('./bpmn:ioSpecification/bpmn:outputSet/bpmn:dataOutputRefs'):
        if ref.text in data_refs:
            outputs.append(data_refs[ref.text])
    return BpmnIoSpecification(inputs, outputs)