protected function generateRawId($id, $attributes) { ksort($attributes); return md5($id . serialize($attributes)); }