protected function _loadRouteTableData(\SimpleXMLElement $v)
{
$item = null;
if ($this->exist($v)) {
$routeTableId = (string) $v->routeTableId;
$item = $this->ec2->getEntityManagerEnabled() ? $this->ec2->routeTable->get($routeTableId) : null;
if ($item === null) {
$item = new RouteTableData($routeTableId);
$item->setEc2($this->ec2);
$bAttach = true;
} else {
$item->resetObject();
$item->routeTableId = $routeTableId;
$bAttach = false;
}
$item->vpcId = (string) $v->vpcId;
$item->setRouteSet($this->_loadRouteList($v->routeSet, $routeTableId));
$item->setTagSet($this->_loadResourceTagSetList($v->tagSet));
$item->setAssociationSet($this->_loadListByName('RouteTableAssociation', $v->associationSet));
$item->setPropagatingVgwSet($this->_loadListByName('PropagatingVgw', $v->propagatingVgwSet));
if ($bAttach && $this->ec2->getEntityManagerEnabled()) {
$this->getEntityManager()->attach($item);
}
}
return $item;
}