@Override
  public Object getAsObject(FacesContext context, UIComponent component, String value) {
    if (value.trim().equals("")) {
      return null;
    } else {
      try {
        int number = Integer.parseInt(value);

        for (Tela tela : telaDB) {
          if (tela.getId() == number) {
            return tela;
          }
        }

      } catch (NumberFormatException exception) {
        throw new ConverterException(
            new FacesMessage(
                FacesMessage.SEVERITY_ERROR,
                "Conversion Error",
                "Não é um tipo de equipamento válido"));
      }
    }

    return null;
  }