/**
  * Normalize the attributes
  *
  * @param AttributeGroupInterface $group
  *
  * @return array
  */
 protected function normalizeAttributes(AttributeGroupInterface $group)
 {
     $attributes = array();
     foreach ($group->getAttributes() as $attribute) {
         $attributes[] = $attribute->getCode();
     }
     return $attributes;
 }