@SuppressWarnings("unchecked")
  @Override
  public T getValue() throws IllegalAccessException, InvocationTargetException {
    if (!myDomElement.isValid()) {
      return null;
    }

    List<? extends DomElement> list = myChildDescription.getValues(myDomElement);
    return list.isEmpty() ? null : (T)myGetter.invoke(list.get(0));
  }
@SuppressWarnings("unchecked")
  @Override
  public T getValue()