@Override
  public void setModelAttributes(Map<String, Object> attributes) {
    Integer listTypeId = (Integer) attributes.get("listTypeId");

    if (listTypeId != null) {
      setListTypeId(listTypeId);
    }

    String name = (String) attributes.get("name");

    if (name != null) {
      setName(name);
    }

    String type = (String) attributes.get("type");

    if (type != null) {
      setType(type);
    }
  }