/**
  * @param array $convertedItem
  *
  * @return AttributeInterface
  */
 protected function findOrCreateAttribute(array $convertedItem)
 {
     $attribute = $this->findObject($this->repository, $convertedItem);
     if (null === $attribute) {
         return $this->attributeFactory->createAttribute($convertedItem['attributeType']);
     }
     return $attribute;
 }
 /**
  * Create an attribute
  *
  * @param string $type
  *
  * @return AttributeInterface
  *
  * @deprecated will be removed in 1.5, please use AttributeFactory::createAttribute
  */
 public function createAttribute($type = null)
 {
     return $this->factory->createAttribute($type);
 }