public function untrashLocation($locationId, $newParentId = null)
{
$row = $this->loadTrashByLocation($locationId);
$newLocation = $this->create(new CreateStruct(array('priority' => $row['priority'], 'hidden' => $row['is_hidden'], 'invisible' => $row['is_invisible'], 'remoteId' => $row['remote_id'], 'contentId' => $row['contentobject_id'], 'contentVersion' => $row['contentobject_version'], 'mainLocationId' => true, 'sortField' => $row['sort_field'], 'sortOrder' => $row['sort_order'])), $this->getBasicNodeData($newParentId ?: $row['parent_node_id']));
$this->removeElementFromTrash($locationId);
$this->setContentStatus($row['contentobject_id'], ContentInfo::STATUS_PUBLISHED);
return $newLocation;
}