/**
  * Handle attribute collection and return an associative array
  *
  * @param ParameterCollection $attributeCollection
  *
  * @return array  List of attributes
  */
 private function handleAttributes(ParameterCollection $attributeCollection)
 {
     $attributes = array();
     /** @var Parameter $attribute */
     foreach ($attributeCollection->toArray() as $attribute) {
         $attributes[$attribute->getKey()] = $attribute->getValue();
     }
     return $attributes;
 }