/**
  * Create a new DomainSpecificEmailField based on the provided TextField.
  * @param  TextField $field
  * @return DomainSpecificEmailField
  */
 public static function createFrom(TextField $field)
 {
     return new self($field->getName(), $field->Title(), $field->Value(), $field->getMaxLength(), $field->getForm());
 }