public function _validateObject($dataObject, $requiredFields = null)
{
// Command required values
if ((!isset($dataObject->cookie) || !$dataObject->cookie) && (!isset($dataObject->attributes->domain) || !$dataObject->attributes->domain)) {
throw new Exception('oSRS Error - cookie or domain is not defined.');
}
if (isset($dataObject->cookie) && isset($dataObject->attributes->domain) && $dataObject->cookie && $dataObject->attributes->domain) {
throw new Exception('oSRS Error - Both cookie and domain cannot be set in one call.');
}
}