public function setFields(array $fields)
{
$this->prepareFieldDefinition($fields);
$this->convertToFieldObjects($fields);
$this->translateFields($fields);
$this->fields = $fields;
$this->_fields = array();
$this->prepareFieldItem($this->fields);
$this->ensureLanguageField();
}