/**
* Obtain the resource's internal identifier, taking into account whether or
* not we have validated/selected a resource for this group yet.
*
* @return string The id.
*/
public function getId()
{
if (!empty($this->_selectedResource)) {
return $this->_selectedResource->getId();
} else {
return parent::getId();
}
}