public function configurePushRequest($pushed)
{
// Offset the array by one of it has a string key and is size of 1
if (sizeof($pushed) == 1 && is_string(key($pushed))) {
$rootKey = key($pushed);
$pushed = $this->filterPushExpose($pushed[key($pushed)], $this->fields);
return ResultSet::create($pushed, $rootKey);
} else {
throw DrestException::unableToHandleACollectionPush();
}
}