@staticmethod<EOL><INDENT>def export_lane(parent_xml_element, lane_id, lane_attr, plane_element):<DEDENT>
lane_xml = eTree.SubElement(parent_xml_element, consts.Consts.lane)<EOL>lane_xml.set(consts.Consts.id, lane_id)<EOL>lane_xml.set(consts.Consts.name, lane_attr[consts.Consts.name])<EOL>if consts.Consts.child_lane_set in lane_attr and len(lane_attr[consts.Consts.child_lane_set]):<EOL><INDENT>child_lane_set = lane_attr[consts.Consts.child_lane_set]<EOL>BpmnDiagramGraphExport.export_child_lane_set(lane_xml, child_lane_set, plane_element)<EOL><DEDENT>if consts.Consts.flow_node_refs in lane_attr and len(lane_attr[consts.Consts.flow_node_refs]):<EOL><INDENT>for flow_node_ref_id in lane_attr[consts.Consts.flow_node_refs]:<EOL><INDENT>flow_node_ref_xml = eTree.SubElement(lane_xml, consts.Consts.flow_node_ref)<EOL>flow_node_ref_xml.text = flow_node_ref_id<EOL><DEDENT><DEDENT>output_element_di = eTree.SubElement(plane_element, BpmnDiagramGraphExport.bpmndi_namespace +<EOL>consts.Consts.bpmn_shape)<EOL>output_element_di.set(consts.Consts.id, lane_id + "<STR_LIT>")<EOL>output_element_di.set(consts.Consts.bpmn_element, lane_id)<EOL>output_element_di.set(consts.Consts.is_horizontal, lane_attr[consts.Consts.is_horizontal])<EOL>bounds = eTree.SubElement(output_element_di, "<STR_LIT>")<EOL>bounds.set(consts.Consts.width, lane_attr[consts.Consts.width])<EOL>bounds.set(consts.Consts.height, lane_attr[consts.Consts.height])<EOL>bounds.set(consts.Consts.x, lane_attr[consts.Consts.x])<EOL>bounds.set(consts.Consts.y, lane_attr[consts.Consts.y])<EOL>
Creates 'lane' element for exported BPMN XML file.

:param parent_xml_element: an XML element, parent of exported 'lane' element,
:param lane_id: string object. ID of exported lane element,
:param lane_attr: dictionary with lane element attributes,
:param plane_element: XML object, representing 'plane' element of exported BPMN 2.0 XML.