protected function _getStateId(DataHolder $dataHolder) { $state = $dataHolder->getState(); return NULL === $state ? $state : $state->id; }