@staticmethod<EOL><INDENT>def import_lane_element(lane_element, plane_element):<DEDENT>
lane_id = lane_element.getAttribute(consts.Consts.id)<EOL>lane_name = lane_element.getAttribute(consts.Consts.name)<EOL>child_lane_set_attr = {}<EOL>flow_node_refs = []<EOL>for element in utils.BpmnImportUtils.iterate_elements(lane_element):<EOL><INDENT>if element.nodeType != element.TEXT_NODE:<EOL><INDENT>tag_name = utils.BpmnImportUtils.remove_namespace_from_tag_name(element.tagName)<EOL>if tag_name == consts.Consts.child_lane_set:<EOL><INDENT>child_lane_set_attr = BpmnDiagramGraphImport.import_child_lane_set_element(element, plane_element)<EOL><DEDENT>elif tag_name == consts.Consts.flow_node_ref:<EOL><INDENT>flow_node_ref_id = element.firstChild.nodeValue<EOL>flow_node_refs.append(flow_node_ref_id)<EOL><DEDENT><DEDENT><DEDENT>lane_attr = {consts.Consts.id: lane_id, consts.Consts.name: lane_name,<EOL>consts.Consts.child_lane_set: child_lane_set_attr,<EOL>consts.Consts.flow_node_refs: flow_node_refs}<EOL>shape_element = None<EOL>for element in utils.BpmnImportUtils.iterate_elements(plane_element):<EOL><INDENT>if element.nodeType != element.TEXT_NODE and element.getAttribute(consts.Consts.bpmn_element) == lane_id:<EOL><INDENT>shape_element = element<EOL><DEDENT><DEDENT>if shape_element is not None:<EOL><INDENT>bounds = shape_element.getElementsByTagNameNS("<STR_LIT:*>", "<STR_LIT>")[<NUM_LIT:0>]<EOL>lane_attr[consts.Consts.is_horizontal] = shape_element.getAttribute(consts.Consts.is_horizontal)<EOL>lane_attr[consts.Consts.width] = bounds.getAttribute(consts.Consts.width)<EOL>lane_attr[consts.Consts.height] = bounds.getAttribute(consts.Consts.height)<EOL>lane_attr[consts.Consts.x] = bounds.getAttribute(consts.Consts.x)<EOL>lane_attr[consts.Consts.y] = bounds.getAttribute(consts.Consts.y)<EOL><DEDENT>return lane_attr<EOL>
Method for importing 'laneSet' element from diagram file.

:param lane_element: XML document element,
:param plane_element: object representing a BPMN XML 'plane' element.